#171F88#171F88
#171F88 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.4% C 0.169 H 269.3°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).
Color values
| HEX | #171F88 |
|---|---|
| RGB | rgb(23, 31, 136) |
| HSL | hsl(236, 71%, 31%) |
| HSV | hsv(236, 83%, 53%) |
| CMYK | cmyk(83.1%, 77.2%, 0%, 46.7%) |
| CIE-LAB | lab(19.80, 36.55, -58.38) |
| CIE-LCH | lch(19.80, 68.87, 302.05°) |
| OKLab | oklab(32.4% -0.0021 -0.1691) |
| OKLCH | oklch(32.4% 0.169 269.3) |
| XYZ | xyz(5.2857, 2.9391, 23.5765) |
| Luminance | 0.0294 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.48
Midnight Blue
#191970
ΔE00 3.83
Cobalt Blue
#030AA7
ΔE00 5.49
Darkblue
#00008B
ΔE00 5.50
Navy
#000080
ΔE00 5.88
Royal Blue (survey)
#0504AA
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F88 #888017
analogous
#175788 #171F88 #471788
triadic
#171F88 #88171F #1F8817
tetradic
#171F88 #881757 #888017 #178847
square
#171F88 #881757 #888017 #178847
split-complementary
#171F88 #884717 #578817
monochromatic
#05071F #0E1354 #171F88 #202BBC #3B47DE
Accessibility & contrast
On white
13.22
#171F88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#171F88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F88
13.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F88 | 1.00 | 13.22 | 1.59 | 13.22 |
| #FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00358B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #171f88; /* rgb */ color: rgb(23, 31, 136); /* oklch */ color: oklch(32.4% 0.169 269.3);
Tailwind
colors: {
custom: {
50: '#6b5cac',
500: '#171f88',
950: '#000000',
},
}SCSS
$custom: #171f88; $custom-light: #6b5cac; $custom-dark: #000000;
JSON
{
"hex": "#171f88",
"rgb": {
"r": 23,
"g": 31,
"b": 136
},
"hsl": {
"h": 235.752,
"s": 71.069,
"l": 31.176
},
"oklch": {
"l": 0.32395,
"c": 0.16914,
"h": 269.3
},
"luminance": 0.0294
}Semantic roles & 50–950 ramp
primary
#171F88
secondary
#BCB33F
accent
#E13AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F