#171F6C#171F6C
#171F6C is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.3% C 0.132 H 270.8°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).
Color values
| HEX | #171F6C |
|---|---|
| RGB | rgb(23, 31, 108) |
| HSL | hsl(234, 65%, 26%) |
| HSV | hsv(234, 79%, 42%) |
| CMYK | cmyk(78.7%, 71.3%, 0%, 57.6%) |
| CIE-LAB | lab(16.72, 26.08, -45.55) |
| CIE-LCH | lch(16.72, 52.49, 299.79°) |
| OKLab | oklab(29.27% 0.0018 -0.1318) |
| OKLCH | oklch(29.27% 0.132 270.8) |
| XYZ | xyz(3.5492, 2.2445, 14.4306) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.24
Darkblue (survey)
#030764
ΔE00 5.92
Dark Royal Blue
#02066F
ΔE00 6.14
Royal
#0C1793
ΔE00 6.71
Dark Indigo
#1F0954
ΔE00 6.90
Deep Blue
#040273
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F6C #6C6417
analogous
#17496C #171F6C #39176C
triadic
#171F6C #6C171F #1F6C17
tetradic
#171F6C #6C1749 #6C6417 #176C39
square
#171F6C #6C1749 #6C6417 #176C39
split-complementary
#171F6C #6C3917 #496C17
monochromatic
#050719 #0C113A #171F6C #222D9E #2C3CD1
Accessibility & contrast
On white
14.49
#171F6C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#171F6C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F6C
14.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F6C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F6C | 1.00 | 14.49 | 1.45 | 14.49 |
| #FFFFFF | 14.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#00256B
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #171f6c; /* rgb */ color: rgb(23, 31, 108); /* oklch */ color: oklch(29.3% 0.132 270.8);
Tailwind
colors: {
custom: {
50: '#635b97',
500: '#171f6c',
950: '#000000',
},
}SCSS
$custom: #171f6c; $custom-light: #635b97; $custom-dark: #000000;
JSON
{
"hex": "#171f6c",
"rgb": {
"r": 23,
"g": 31,
"b": 108
},
"hsl": {
"h": 234.353,
"s": 64.885,
"l": 25.686
},
"oklch": {
"l": 0.29268,
"c": 0.13181,
"h": 270.8
},
"luminance": 0.02245
}Semantic roles & 50–950 ramp
primary
#171F6C
secondary
#A2983D
accent
#D840E8
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E