#171F56#171F56
#171F56 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 27.0% C 0.099 H 271.7°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).
Color values
| HEX | #171F56 |
|---|---|
| RGB | rgb(23, 31, 86) |
| HSL | hsl(232, 58%, 21%) |
| HSV | hsv(232, 73%, 34%) |
| CMYK | cmyk(73.3%, 64%, 0%, 66.3%) |
| CIE-LAB | lab(14.59, 17.29, -34.46) |
| CIE-LCH | lch(14.59, 38.55, 296.65°) |
| OKLab | oklab(27.05% 0.003 -0.0993) |
| OKLCH | oklch(27.05% 0.099 271.7) |
| XYZ | xyz(2.5225, 1.8338, 9.0233) |
| Luminance | 0.0183 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Navy Blue (survey)
#001146
ΔE00 4.43
Navy (survey)
#01153E
ΔE00 5.06
Midnight Blue
#191970
ΔE00 6.08
Navy Blue
#1B2A4A
ΔE00 6.32
Marine
#042E60
ΔE00 6.88
Dark Indigo
#1F0954
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F56 #564E17
analogous
#173F56 #171F56 #2F1756
triadic
#171F56 #56171F #1F5617
tetradic
#171F56 #56173F #564E17 #17562F
square
#171F56 #56173F #564E17 #17562F
split-complementary
#171F56 #562F17 #3F5617
monochromatic
#060918 #0A0E26 #171F56 #243086 #3142B7
Accessibility & contrast
On white
15.36
#171F56 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.37
#171F56 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F56
15.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F56 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F56 | 1.00 | 15.36 | 1.37 | 15.36 |
| #FFFFFF | 15.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.37 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#252525
Design tokens & code
CSS
--color: #171f56; /* rgb */ color: rgb(23, 31, 86); /* oklch */ color: oklch(27.0% 0.099 271.7);
Tailwind
colors: {
custom: {
50: '#5d5a86',
500: '#171f56',
950: '#000000',
},
}SCSS
$custom: #171f56; $custom-light: #5d5a86; $custom-dark: #000000;
JSON
{
"hex": "#171f56",
"rgb": {
"r": 23,
"g": 31,
"b": 86
},
"hsl": {
"h": 232.381,
"s": 57.798,
"l": 21.373
},
"oklch": {
"l": 0.27047,
"c": 0.09933,
"h": 271.7
},
"luminance": 0.01834
}Semantic roles & 50–950 ramp
primary
#171F56
secondary
#8D833C
accent
#CD47E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05030B
muted
#79787C