Shades of Blue: Names, HEX & RGB Codes

Blue covers everything from pale ice blues to deep navy. Below are all the CSS named colors in the blue family with their HEX, RGB and HSL values, plus a tint-and-shade scale you can copy.

17 named blue colors in CSS

Every name below works directly in CSS (for example color: dodgerblue;). Values are from the CSS Color Module Level 4 list; the last column shows whether white or black text has more contrast on that color, and the exact WCAG ratio.

NameHEXRGBHSLBest text color
Alice Blue
aliceblue
#F0F8FFrgb(240, 248, 255)hsl(208, 100%, 97%)black text, 19.57:1
Powder Blue
powderblue
#B0E0E6rgb(176, 224, 230)hsl(187, 52%, 80%)black text, 14.65:1
Light Blue
lightblue
#ADD8E6rgb(173, 216, 230)hsl(195, 53%, 79%)black text, 13.74:1
Light Steel Blue
lightsteelblue
#B0C4DErgb(176, 196, 222)hsl(214, 41%, 78%)black text, 11.79:1
Light Sky Blue
lightskyblue
#87CEFArgb(135, 206, 250)hsl(203, 92%, 75%)black text, 12.23:1
Sky Blue
skyblue
#87CEEBrgb(135, 206, 235)hsl(197, 71%, 73%)black text, 12.05:1
Cornflower Blue
cornflowerblue
#6495EDrgb(100, 149, 237)hsl(219, 79%, 66%)black text, 7.06:1
Royal Blue
royalblue
#4169E1rgb(65, 105, 225)hsl(225, 73%, 57%)white text, 4.84:1
Dodger Blue
dodgerblue
#1E90FFrgb(30, 144, 255)hsl(210, 100%, 56%)black text, 6.48:1
Deep Sky Blue
deepskyblue
#00BFFFrgb(0, 191, 255)hsl(195, 100%, 50%)black text, 9.89:1
Cadet Blue
cadetblue
#5F9EA0rgb(95, 158, 160)hsl(182, 25%, 50%)black text, 6.88:1
Blue
blue
#0000FFrgb(0, 0, 255)hsl(240, 100%, 50%)white text, 8.59:1
Steel Blue
steelblue
#4682B4rgb(70, 130, 180)hsl(207, 44%, 49%)black text, 5.11:1
Medium Blue
mediumblue
#0000CDrgb(0, 0, 205)hsl(240, 100%, 40%)white text, 11.16:1
Dark Blue
darkblue
#00008Brgb(0, 0, 139)hsl(240, 100%, 27%)white text, 15.29:1
Midnight Blue
midnightblue
#191970rgb(25, 25, 112)hsl(240, 64%, 27%)white text, 14.84:1
Navy
navy
#000080rgb(0, 0, 128)hsl(240, 100%, 25%)white text, 16.00:1

Blue tint & shade scale

A ten-step scale built from royalblue (#4169E1). Need a scale for your own color? Use the tints, shades & tones generator.

ECF0FC
D0DAF8
B3C3F3
8DA5ED
6787E7
4169E1
3454B4
273F87
1A2A5A
101A38

Tints (mixed with white) on the left, shades (mixed with black) on the right. Click a swatch to copy it.

Using blue in design

Blue is the most common color for links and primary buttons, partly because it reads clearly as interactive and is distinguishable for people with red-green color blindness. Dark blues such as navy (#000080) and midnightblue (#191970) pass the 4.5:1 text contrast requirement on white with a wide margin; mid blues like dodgerblue (#1E90FF) do not, so use them for large elements or pair them with dark text.

A palette to start from

0A1628
1B3A5C
2D7DD2
6CB4EE
E8F1F8

More ideas: cool color palettes, fintech blue palettes, or check any pair in the contrast checker.

Other color families