#171E81#171E81
#171E81 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.161 H 269.8°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).
Color values
| HEX | #171E81 |
|---|---|
| RGB | rgb(23, 30, 129) |
| HSL | hsl(236, 70%, 30%) |
| HSV | hsv(236, 82%, 51%) |
| CMYK | cmyk(82.2%, 76.7%, 0%, 49.4%) |
| CIE-LAB | lab(18.78, 34.63, -55.65) |
| CIE-LCH | lch(18.78, 65.55, 301.89°) |
| OKLab | oklab(31.43% -0.0006 -0.1612) |
| OKLCH | oklch(31.43% 0.161 269.8) |
| XYZ | xyz(4.7787, 2.6951, 21.0330) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.80
Royal
#0C1793
ΔE00 3.20
Dark Royal Blue
#02066F
ΔE00 5.55
Darkblue
#00008B
ΔE00 5.61
Navy
#000080
ΔE00 5.70
Deep Blue
#040273
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#171E81 #817A17
analogous
#175381 #171E81 #451781
triadic
#171E81 #81171E #1E8117
tetradic
#171E81 #811753 #817A17 #178145
square
#171E81 #811753 #817A17 #178145
split-complementary
#171E81 #814517 #538117
monochromatic
#05061A #0E124D #171E81 #202AB5 #3742DB
Accessibility & contrast
On white
13.64
#171E81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#171E81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #171E81
13.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##171E81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##171E81 | 1.00 | 13.64 | 1.54 | 13.64 |
| #FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #171e81; /* rgb */ color: rgb(23, 30, 129); /* oklch */ color: oklch(31.4% 0.161 269.8);
Tailwind
colors: {
custom: {
50: '#695ba7',
500: '#171e81',
950: '#000000',
},
}SCSS
$custom: #171e81; $custom-light: #695ba7; $custom-dark: #000000;
JSON
{
"hex": "#171e81",
"rgb": {
"r": 23,
"g": 30,
"b": 129
},
"hsl": {
"h": 236.038,
"s": 69.737,
"l": 29.804
},
"oklch": {
"l": 0.31433,
"c": 0.16121,
"h": 269.8
},
"luminance": 0.02696
}Semantic roles & 50–950 ramp
primary
#171E81
secondary
#B5AE3E
accent
#E13BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#080410
muted
#7A797F