#171F6F#171F6F
#171F6F is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.136 H 270.6°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).
Color values
| HEX | #171F6F |
|---|---|
| RGB | rgb(23, 31, 111) |
| HSL | hsl(235, 66%, 26%) |
| HSV | hsv(235, 79%, 44%) |
| CMYK | cmyk(79.3%, 72.1%, 0%, 56.5%) |
| CIE-LAB | lab(17.03, 27.25, -46.99) |
| CIE-LCH | lch(17.03, 54.32, 300.11°) |
| OKLab | oklab(29.59% 0.0014 -0.136) |
| OKLCH | oklch(29.59% 0.136 270.6) |
| XYZ | xyz(3.7116, 2.3094, 15.2860) |
| Luminance | 0.0231 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 1.96
Darkblue (survey)
#030764
ΔE00 5.86
Dark Royal Blue
#02066F
ΔE00 5.93
Royal
#0C1793
ΔE00 6.19
Deep Blue
#040273
ΔE00 6.68
Dark Indigo
#1F0954
ΔE00 7.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F6F #6F6717
analogous
#174B6F #171F6F #3B176F
triadic
#171F6F #6F171F #1F6F17
tetradic
#171F6F #6F174B #6F6717 #176F3B
square
#171F6F #6F174B #6F6717 #176F3B
split-complementary
#171F6F #6F3B17 #4B6F17
monochromatic
#050719 #0C113C #171F6F #222DA2 #2D3CD3
Accessibility & contrast
On white
14.36
#171F6F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#171F6F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F6F
14.36:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F6F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F6F | 1.00 | 14.36 | 1.46 | 14.36 |
| #FFFFFF | 14.36 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.36 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00266E
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #171f6f; /* rgb */ color: rgb(23, 31, 111); /* oklch */ color: oklch(29.6% 0.136 270.6);
Tailwind
colors: {
custom: {
50: '#645b99',
500: '#171f6f',
950: '#000000',
},
}SCSS
$custom: #171f6f; $custom-light: #645b99; $custom-dark: #000000;
JSON
{
"hex": "#171f6f",
"rgb": {
"r": 23,
"g": 31,
"b": 111
},
"hsl": {
"h": 234.545,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.2959,
"c": 0.13601,
"h": 270.6
},
"luminance": 0.0231
}Semantic roles & 50–950 ramp
primary
#171F6F
secondary
#A59B3D
accent
#D93FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E