#171E8B#171E8B
#171E8B is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.6% C 0.174 H 269.3°. Best body text is #FFFFFF at 13.17:1 contrast (WCAG AA passes).
Color values
| HEX | #171E8B |
|---|---|
| RGB | rgb(23, 30, 139) |
| HSL | hsl(236, 72%, 32%) |
| HSV | hsv(236, 83%, 55%) |
| CMYK | cmyk(83.5%, 78.4%, 0%, 45.5%) |
| CIE-LAB | lab(19.94, 38.20, -60.02) |
| CIE-LCH | lch(19.94, 71.15, 302.48°) |
| OKLab | oklab(32.6% -0.0022 -0.1739) |
| OKLCH | oklch(32.6% 0.174 269.3) |
| XYZ | xyz(5.4762, 2.9741, 24.7065) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.97
Midnight Blue
#191970
ΔE00 4.20
Cobalt Blue
#030AA7
ΔE00 4.94
Darkblue
#00008B
ΔE00 5.17
Royal Blue (survey)
#0504AA
ΔE00 5.55
Navy
#000080
ΔE00 5.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171E8B #8B8417
analogous
#17588B #171E8B #4A178B
triadic
#171E8B #8B171E #1E8B17
tetradic
#171E8B #8B1758 #8B8417 #178B4A
square
#171E8B #8B1758 #8B8417 #178B4A
split-complementary
#171E8B #8B4A17 #588B17
monochromatic
#060722 #0E1356 #171E8B #2029C0 #3D47DF
Accessibility & contrast
On white
13.17
#171E8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#171E8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171E8B
13.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171E8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171E8B | 1.00 | 13.17 | 1.60 | 13.17 |
| #FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.17 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002A89
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #171e8b; /* rgb */ color: rgb(23, 30, 139); /* oklch */ color: oklch(32.6% 0.174 269.3);
Tailwind
colors: {
custom: {
50: '#6c5bae',
500: '#171e8b',
950: '#000000',
},
}SCSS
$custom: #171e8b; $custom-light: #6c5bae; $custom-dark: #000000;
JSON
{
"hex": "#171e8b",
"rgb": {
"r": 23,
"g": 30,
"b": 139
},
"hsl": {
"h": 236.379,
"s": 71.605,
"l": 31.765
},
"oklch": {
"l": 0.32598,
"c": 0.1739,
"h": 269.3
},
"luminance": 0.02975
}Semantic roles & 50–950 ramp
primary
#171E8B
secondary
#BFB73F
accent
#E339EE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F