#171888#171888
#171888 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.4% C 0.176 H 270.0°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).
Color values
| HEX | #171888 |
|---|---|
| RGB | rgb(23, 24, 136) |
| HSL | hsl(239, 71%, 31%) |
| HSV | hsv(239, 83%, 53%) |
| CMYK | cmyk(83.1%, 82.4%, 0%, 46.7%) |
| CIE-LAB | lab(18.42, 40.50, -60.66) |
| CIE-LCH | lch(18.42, 72.94, 303.73°) |
| OKLab | oklab(31.42% 0 -0.1757) |
| OKLCH | oklch(31.42% 0.176 270) |
| XYZ | xyz(5.1224, 2.6124, 23.5220) |
| Luminance | 0.0261 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.60
Midnight Blue
#191970
ΔE00 3.82
Darkblue
#00008B
ΔE00 3.86
Navy
#000080
ΔE00 4.28
Cobalt Blue
#030AA7
ΔE00 4.56
Dark Royal Blue
#02066F
ΔE00 5.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171888 #888717
analogous
#175088 #171888 #4E1788
triadic
#171888 #881718 #188817
tetradic
#171888 #881750 #888717 #17884E
square
#171888 #881750 #888717 #17884E
split-complementary
#171888 #884E17 #508817
monochromatic
#05061F #0E0F54 #171888 #2021BC #3B3DDE
Accessibility & contrast
On white
13.79
#171888 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#171888 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171888
13.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171888 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171888 | 1.00 | 13.79 | 1.52 | 13.79 |
| #FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002786
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #171888; /* rgb */ color: rgb(23, 24, 136); /* oklch */ color: oklch(31.4% 0.176 270.0);
Tailwind
colors: {
custom: {
50: '#6c58ac',
500: '#171888',
950: '#000000',
},
}SCSS
$custom: #171888; $custom-light: #6c58ac; $custom-dark: #000000;
JSON
{
"hex": "#171888",
"rgb": {
"r": 23,
"g": 24,
"b": 136
},
"hsl": {
"h": 239.469,
"s": 71.069,
"l": 31.176
},
"oklch": {
"l": 0.31424,
"c": 0.17566,
"h": 270
},
"luminance": 0.02613
}Semantic roles & 50–950 ramp
primary
#171888
secondary
#BCBB3F
accent
#EC3AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080310
muted
#7B787F