#171F86#171F86
#171F86 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.167 H 269.4°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).
Color values
| HEX | #171F86 |
|---|---|
| RGB | rgb(23, 31, 134) |
| HSL | hsl(236, 71%, 31%) |
| HSV | hsv(236, 83%, 53%) |
| CMYK | cmyk(82.8%, 76.9%, 0%, 47.5%) |
| CIE-LAB | lab(19.57, 35.83, -57.50) |
| CIE-LCH | lch(19.57, 67.75, 301.93°) |
| OKLab | oklab(32.16% -0.0018 -0.1666) |
| OKLCH | oklch(32.16% 0.167 269.4) |
| XYZ | xyz(5.1449, 2.8828, 22.8349) |
| Luminance | 0.0288 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.72
Midnight Blue
#191970
ΔE00 3.55
Darkblue
#00008B
ΔE00 5.59
Cobalt Blue
#030AA7
ΔE00 5.75
Navy
#000080
ΔE00 5.88
Dark Royal Blue
#02066F
ΔE00 6.05
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F86 #867E17
analogous
#175686 #171F86 #461786
triadic
#171F86 #86171F #1F8617
tetradic
#171F86 #861756 #867E17 #178646
square
#171F86 #861756 #867E17 #178646
split-complementary
#171F86 #864617 #568617
monochromatic
#05071E #0E1352 #171F86 #202BBA #3A46DD
Accessibility & contrast
On white
13.32
#171F86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.58
#171F86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F86
13.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F86 | 1.00 | 13.32 | 1.58 | 13.32 |
| #FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.58 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #171f86; /* rgb */ color: rgb(23, 31, 134); /* oklch */ color: oklch(32.2% 0.167 269.4);
Tailwind
colors: {
custom: {
50: '#6b5caa',
500: '#171f86',
950: '#000000',
},
}SCSS
$custom: #171f86; $custom-light: #6b5caa; $custom-dark: #000000;
JSON
{
"hex": "#171f86",
"rgb": {
"r": 23,
"g": 31,
"b": 134
},
"hsl": {
"h": 235.676,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.32163,
"c": 0.1666,
"h": 269.4
},
"luminance": 0.02883
}Semantic roles & 50–950 ramp
primary
#171F86
secondary
#BAB13F
accent
#E13AED
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F