#171F71#171F71
#171F71 is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.8% C 0.139 H 270.5°. Best body text is #FFFFFF at 14.28:1 contrast (WCAG AA passes).
Color values
| HEX | #171F71 |
|---|---|
| RGB | rgb(23, 31, 113) |
| HSL | hsl(235, 66%, 27%) |
| HSV | hsv(235, 80%, 44%) |
| CMYK | cmyk(79.6%, 72.6%, 0%, 55.7%) |
| CIE-LAB | lab(17.25, 28.02, -47.94) |
| CIE-LCH | lch(17.25, 55.53, 300.30°) |
| OKLab | oklab(29.81% 0.0012 -0.1388) |
| OKLCH | oklch(29.81% 0.139 270.5) |
| XYZ | xyz(3.8230, 2.3540, 15.8725) |
| Luminance | 0.0235 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.83
Dark Royal Blue
#02066F
ΔE00 5.82
Royal
#0C1793
ΔE00 5.85
Darkblue (survey)
#030764
ΔE00 5.85
Deep Blue
#040273
ΔE00 6.53
Navy
#000080
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F71 #716917
analogous
#174C71 #171F71 #3C1771
triadic
#171F71 #71171F #1F7117
tetradic
#171F71 #71174C #716917 #17713C
square
#171F71 #71174C #716917 #17713C
split-complementary
#171F71 #713C17 #4C7117
monochromatic
#050719 #0D113E #171F71 #212DA4 #2E3DD4
Accessibility & contrast
On white
14.28
#171F71 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#171F71 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F71
14.28:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F71 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F71 | 1.00 | 14.28 | 1.47 | 14.28 |
| #FFFFFF | 14.28 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.28 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F73
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #171f71; /* rgb */ color: rgb(23, 31, 113); /* oklch */ color: oklch(29.8% 0.139 270.5);
Tailwind
colors: {
custom: {
50: '#655b9b',
500: '#171f71',
950: '#000000',
},
}SCSS
$custom: #171f71; $custom-light: #655b9b; $custom-dark: #000000;
JSON
{
"hex": "#171f71",
"rgb": {
"r": 23,
"g": 31,
"b": 113
},
"hsl": {
"h": 234.667,
"s": 66.176,
"l": 26.667
},
"oklch": {
"l": 0.29806,
"c": 0.13877,
"h": 270.5
},
"luminance": 0.02354
}Semantic roles & 50–950 ramp
primary
#171F71
secondary
#A79D3D
accent
#DA3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E