#171F81#171F81
#171F81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.160 H 269.6°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).
Color values
| HEX | #171F81 |
|---|---|
| RGB | rgb(23, 31, 129) |
| HSL | hsl(235, 70%, 30%) |
| HSV | hsv(235, 82%, 51%) |
| CMYK | cmyk(82.2%, 76%, 0%, 49.4%) |
| CIE-LAB | lab(19.00, 34.01, -55.29) |
| CIE-LCH | lch(19.00, 64.91, 301.60°) |
| OKLab | oklab(31.59% -0.001 -0.1602) |
| OKLCH | oklch(31.59% 0.16 269.6) |
| XYZ | xyz(4.8044, 2.7466, 21.0415) |
| Luminance | 0.0275 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.89
Royal
#0C1793
ΔE00 3.37
Dark Royal Blue
#02066F
ΔE00 5.79
Darkblue
#00008B
ΔE00 5.87
Navy
#000080
ΔE00 5.97
Deep Blue
#040273
ΔE00 6.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171F81 #817917
analogous
#175481 #171F81 #441781
triadic
#171F81 #81171F #1F8117
tetradic
#171F81 #811754 #817917 #178144
square
#171F81 #811754 #817917 #178144
split-complementary
#171F81 #814417 #548117
monochromatic
#05061A #0E134D #171F81 #202BB5 #3743DB
Accessibility & contrast
On white
13.55
#171F81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#171F81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171F81
13.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171F81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171F81 | 1.00 | 13.55 | 1.55 | 13.55 |
| #FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #171f81; /* rgb */ color: rgb(23, 31, 129); /* oklch */ color: oklch(31.6% 0.160 269.6);
Tailwind
colors: {
custom: {
50: '#695ba7',
500: '#171f81',
950: '#000000',
},
}SCSS
$custom: #171f81; $custom-light: #695ba7; $custom-dark: #000000;
JSON
{
"hex": "#171f81",
"rgb": {
"r": 23,
"g": 31,
"b": 129
},
"hsl": {
"h": 235.472,
"s": 69.737,
"l": 29.804
},
"oklch": {
"l": 0.3159,
"c": 0.16016,
"h": 269.6
},
"luminance": 0.02747
}Semantic roles & 50–950 ramp
primary
#171F81
secondary
#B5AC3E
accent
#DF3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F