#171F7B#171F7B
#171F7B is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.152 H 270.0°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).
Color values
| HEX | #171F7B |
|---|---|
| RGB | rgb(23, 31, 123) |
| HSL | hsl(235, 68%, 29%) |
| HSV | hsv(235, 81%, 48%) |
| CMYK | cmyk(81.3%, 74.8%, 0%, 51.8%) |
| CIE-LAB | lab(18.33, 31.80, -52.58) |
| CIE-LCH | lch(18.33, 61.45, 301.17°) |
| OKLab | oklab(30.91% -0.0001 -0.1523) |
| OKLCH | oklch(30.91% 0.152 270) |
| XYZ | xyz(4.4173, 2.5917, 19.0025) |
| Luminance | 0.0259 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.20
Royal
#0C1793
ΔE00 4.24
Dark Royal Blue
#02066F
ΔE00 5.63
Deep Blue
#040273
ΔE00 6.14
Darkblue (survey)
#030764
ΔE00 6.16
Navy
#000080
ΔE00 6.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F7B #7B7317
analogous
#17517B #171F7B #41177B
triadic
#171F7B #7B171F #1F7B17
tetradic
#171F7B #7B1751 #7B7317 #177B41
square
#171F7B #7B1751 #7B7317 #177B41
split-complementary
#171F7B #7B4117 #517B17
monochromatic
#05061A #0D1247 #171F7B #212CAF #3341D9
Accessibility & contrast
On white
13.83
#171F7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.52
#171F7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F7B
13.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F7B | 1.00 | 13.83 | 1.52 | 13.83 |
| #FFFFFF | 13.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002879
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #171f7b; /* rgb */ color: rgb(23, 31, 123); /* oklch */ color: oklch(30.9% 0.152 270.0);
Tailwind
colors: {
custom: {
50: '#685ba2',
500: '#171f7b',
950: '#000000',
},
}SCSS
$custom: #171f7b; $custom-light: #685ba2; $custom-dark: #000000;
JSON
{
"hex": "#171f7b",
"rgb": {
"r": 23,
"g": 31,
"b": 123
},
"hsl": {
"h": 235.2,
"s": 68.493,
"l": 28.627
},
"oklch": {
"l": 0.30911,
"c": 0.15229,
"h": 270
},
"luminance": 0.02592
}Semantic roles & 50–950 ramp
primary
#171F7B
secondary
#B0A73E
accent
#DD3CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F