#171F7C#171F7C
#171F7C is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.0% C 0.154 H 269.9°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).
Color values
| HEX | #171F7C |
|---|---|
| RGB | rgb(23, 31, 124) |
| HSL | hsl(235, 69%, 29%) |
| HSV | hsv(235, 81%, 49%) |
| CMYK | cmyk(81.5%, 75%, 0%, 51.4%) |
| CIE-LAB | lab(18.44, 32.17, -53.03) |
| CIE-LCH | lch(18.44, 62.03, 301.24°) |
| OKLab | oklab(31.02% -0.0002 -0.1536) |
| OKLCH | oklch(31.02% 0.154 269.9) |
| XYZ | xyz(4.4802, 2.6169, 19.3339) |
| Luminance | 0.0262 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.30
Royal
#0C1793
ΔE00 4.09
Dark Royal Blue
#02066F
ΔE00 5.64
Deep Blue
#040273
ΔE00 6.13
Navy
#000080
ΔE00 6.18
Darkblue (survey)
#030764
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F7C #7C7417
analogous
#17527C #171F7C #42177C
triadic
#171F7C #7C171F #1F7C17
tetradic
#171F7C #7C1752 #7C7417 #177C42
square
#171F7C #7C1752 #7C7417 #177C42
split-complementary
#171F7C #7C4217 #527C17
monochromatic
#05061A #0D1248 #171F7C #212CB0 #3441D9
Accessibility & contrast
On white
13.78
#171F7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#171F7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F7C
13.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F7C | 1.00 | 13.78 | 1.52 | 13.78 |
| #FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#00287A
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #171f7c; /* rgb */ color: rgb(23, 31, 124); /* oklch */ color: oklch(31.0% 0.154 269.9);
Tailwind
colors: {
custom: {
50: '#685ba3',
500: '#171f7c',
950: '#000000',
},
}SCSS
$custom: #171f7c; $custom-light: #685ba3; $custom-dark: #000000;
JSON
{
"hex": "#171f7c",
"rgb": {
"r": 23,
"g": 31,
"b": 124
},
"hsl": {
"h": 235.248,
"s": 68.707,
"l": 28.824
},
"oklch": {
"l": 0.31023,
"c": 0.15361,
"h": 269.9
},
"luminance": 0.02617
}Semantic roles & 50–950 ramp
primary
#171F7C
secondary
#B1A83E
accent
#DE3CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F