#172181#172181
#172181 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.158 H 269.3°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).
Color values
| HEX | #172181 |
|---|---|
| RGB | rgb(23, 33, 129) |
| HSL | hsl(234, 70%, 30%) |
| HSV | hsv(234, 82%, 51%) |
| CMYK | cmyk(82.2%, 74.4%, 0%, 49.4%) |
| CIE-LAB | lab(19.45, 32.76, -54.54) |
| CIE-LCH | lch(19.45, 63.62, 300.99°) |
| OKLab | oklab(31.91% -0.0018 -0.158) |
| OKLCH | oklch(31.91% 0.158 269.3) |
| XYZ | xyz(4.8583, 2.8543, 21.0595) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.15
Royal
#0C1793
ΔE00 3.75
Dark Royal Blue
#02066F
ΔE00 6.28
Darkblue
#00008B
ΔE00 6.41
Navy
#000080
ΔE00 6.52
Deep Blue
#040273
ΔE00 6.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#172181 #817717
analogous
#175681 #172181 #421781
triadic
#172181 #811721 #218117
tetradic
#172181 #811756 #817717 #178142
square
#172181 #811756 #817717 #178142
split-complementary
#172181 #814217 #568117
monochromatic
#05071A #0E144D #172181 #202EB5 #3747DB
Accessibility & contrast
On white
13.37
#172181 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#172181 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #172181
13.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##172181 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##172181 | 1.00 | 13.37 | 1.57 | 13.37 |
| #FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #172181; /* rgb */ color: rgb(23, 33, 129); /* oklch */ color: oklch(31.9% 0.158 269.3);
Tailwind
colors: {
custom: {
50: '#695da7',
500: '#172181',
950: '#000000',
},
}SCSS
$custom: #172181; $custom-light: #695da7; $custom-dark: #000000;
JSON
{
"hex": "#172181",
"rgb": {
"r": 23,
"g": 33,
"b": 129
},
"hsl": {
"h": 234.34,
"s": 69.737,
"l": 29.804
},
"oklch": {
"l": 0.31913,
"c": 0.15801,
"h": 269.3
},
"luminance": 0.02855
}Semantic roles & 50–950 ramp
primary
#172181
secondary
#B5AA3E
accent
#DC3BED
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#070410
muted
#7A797F