#171F79#171F79
#171F79 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.7% C 0.150 H 270.1°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).
Color values
| HEX | #171F79 |
|---|---|
| RGB | rgb(23, 31, 121) |
| HSL | hsl(235, 68%, 28%) |
| HSV | hsv(235, 81%, 47%) |
| CMYK | cmyk(81%, 74.4%, 0%, 52.5%) |
| CIE-LAB | lab(18.11, 31.05, -51.67) |
| CIE-LCH | lch(18.11, 60.28, 301.01°) |
| OKLab | oklab(30.69% 0.0002 -0.1496) |
| OKLCH | oklch(30.69% 0.15 270.1) |
| XYZ | xyz(4.2933, 2.5421, 18.3499) |
| Luminance | 0.0254 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.02
Royal
#0C1793
ΔE00 4.55
Dark Royal Blue
#02066F
ΔE00 5.62
Darkblue (survey)
#030764
ΔE00 6.06
Deep Blue
#040273
ΔE00 6.18
Navy
#000080
ΔE00 6.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F79 #797117
analogous
#175079 #171F79 #401779
triadic
#171F79 #79171F #1F7917
tetradic
#171F79 #791750 #797117 #177940
square
#171F79 #791750 #797117 #177940
split-complementary
#171F79 #794017 #507917
monochromatic
#05071A #0D1246 #171F79 #212CAC #3240D8
Accessibility & contrast
On white
13.92
#171F79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#171F79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F79
13.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F79 | 1.00 | 13.92 | 1.51 | 13.92 |
| #FFFFFF | 13.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00317C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#00394A
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #171f79; /* rgb */ color: rgb(23, 31, 121); /* oklch */ color: oklch(30.7% 0.150 270.1);
Tailwind
colors: {
custom: {
50: '#675ba1',
500: '#171f79',
950: '#000000',
},
}SCSS
$custom: #171f79; $custom-light: #675ba1; $custom-dark: #000000;
JSON
{
"hex": "#171f79",
"rgb": {
"r": 23,
"g": 31,
"b": 121
},
"hsl": {
"h": 235.102,
"s": 68.056,
"l": 28.235
},
"oklch": {
"l": 0.30687,
"c": 0.14962,
"h": 270.1
},
"luminance": 0.02543
}Semantic roles & 50–950 ramp
primary
#171F79
secondary
#AEA53E
accent
#DD3DEB
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F