#171F89#171F89
#171F89 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.170 H 269.2°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).
Color values
| HEX | #171F89 |
|---|---|
| RGB | rgb(23, 31, 137) |
| HSL | hsl(236, 71%, 31%) |
| HSV | hsv(236, 83%, 54%) |
| CMYK | cmyk(83.2%, 77.4%, 0%, 46.3%) |
| CIE-LAB | lab(19.91, 36.90, -58.81) |
| CIE-LCH | lch(19.91, 69.43, 302.11°) |
| OKLab | oklab(32.51% -0.0022 -0.1704) |
| OKLCH | oklch(32.51% 0.17 269.2) |
| XYZ | xyz(5.3571, 2.9676, 23.9525) |
| Luminance | 0.0297 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.37
Midnight Blue
#191970
ΔE00 3.97
Cobalt Blue
#030AA7
ΔE00 5.36
Darkblue
#00008B
ΔE00 5.47
Navy
#000080
ΔE00 5.88
Royal Blue (survey)
#0504AA
ΔE00 5.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F89 #898117
analogous
#175889 #171F89 #481789
triadic
#171F89 #89171F #1F8917
tetradic
#171F89 #891758 #898117 #178948
square
#171F89 #891758 #898117 #178948
split-complementary
#171F89 #894817 #588917
monochromatic
#050720 #0E1355 #171F89 #202BBD #3C48DE
Accessibility & contrast
On white
13.18
#171F89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#171F89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F89
13.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F89 | 1.00 | 13.18 | 1.59 | 13.18 |
| #FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003F53
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #171f89; /* rgb */ color: rgb(23, 31, 137); /* oklch */ color: oklch(32.5% 0.170 269.2);
Tailwind
colors: {
custom: {
50: '#6c5cad',
500: '#171f89',
950: '#000000',
},
}SCSS
$custom: #171f89; $custom-light: #6c5cad; $custom-dark: #000000;
JSON
{
"hex": "#171f89",
"rgb": {
"r": 23,
"g": 31,
"b": 137
},
"hsl": {
"h": 235.789,
"s": 71.25,
"l": 31.373
},
"oklch": {
"l": 0.32511,
"c": 0.17041,
"h": 269.2
},
"luminance": 0.02968
}Semantic roles & 50–950 ramp
primary
#171F89
secondary
#BDB43F
accent
#E13AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F