MATLAB’s blue short code and its first automatic plot color are different choices.
RGB triplets below use MATLAB’s 0–1 scale.
Short code: r
[1 0 0]
Short code: g
[0 1 0]
Short code: b
[0 0 1]
Short code: c
[0 1 1]
Short code: m
[1 0 1]
Short code: y
[1 1 0]
Short code: k
[0 0 0]
Short code: w
[1 1 1]
The seven positions below use the revised gem palette for light-theme plots. The dark-theme default is glow; earlier gem values differ. MathWorks documents both the named colors and the palette revision.
Palette position: 1
[0.066 0.443 0.745]
Palette position: 2
[0.866 0.329 0]
Palette position: 3
[0.929 0.694 0.125]
Palette position: 4
[0.521 0.086 0.819]
Palette position: 5
[0.231 0.666 0.196]
Palette position: 6
[0.184 0.745 0.937]
Palette position: 7
[0.819 0.015 0.545]
This example selects gem explicitly, so it does not depend on the active theme. Use it in R2025a or later for the colors shown above.
x = (0:0.1:2*pi)';
y = sin(x + (0:6)*pi/7);
figure
colororder(orderedcolors("gem"))
plot(x,y,"LineWidth",1.5)
xlabel("x")
ylabel("sin(x + phase)")
grid on