#17227E#17227E
#17227E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.153 H 269.3°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).
Color values
| HEX | #17227E |
|---|---|
| RGB | rgb(23, 34, 126) |
| HSL | hsl(234, 69%, 29%) |
| HSV | hsv(234, 82%, 49%) |
| CMYK | cmyk(81.7%, 73%, 0%, 50.6%) |
| CIE-LAB | lab(19.36, 30.99, -52.79) |
| CIE-LCH | lch(19.36, 61.21, 300.41°) |
| OKLab | oklab(31.75% -0.0019 -0.1529) |
| OKLCH | oklch(31.75% 0.153 269.3) |
| XYZ | xyz(4.6900, 2.8320, 20.0341) |
| Luminance | 0.0283 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.04
Royal
#0C1793
ΔE00 4.37
Dark Royal Blue
#02066F
ΔE00 6.48
Darkblue
#00008B
ΔE00 6.92
Navy
#000080
ΔE00 6.94
Deep Blue
#040273
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#17227E #7E7317
analogous
#17567E #17227E #40177E
triadic
#17227E #7E1722 #227E17
tetradic
#17227E #7E1756 #7E7317 #177E40
square
#17227E #7E1756 #7E7317 #177E40
split-complementary
#17227E #7E4017 #567E17
monochromatic
#05071A #0E144A #17227E #2030B2 #3547DA
Accessibility & contrast
On white
13.40
#17227E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#17227E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #17227E
13.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##17227E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##17227E | 1.00 | 13.40 | 1.57 | 13.40 |
| #FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002A7C
Tritanopia (blue-blind)
#003C4D
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #17227e; /* rgb */ color: rgb(23, 34, 126); /* oklch */ color: oklch(31.7% 0.153 269.3);
Tailwind
colors: {
custom: {
50: '#685da4',
500: '#17227e',
950: '#000000',
},
}SCSS
$custom: #17227e; $custom-light: #685da4; $custom-dark: #000000;
JSON
{
"hex": "#17227e",
"rgb": {
"r": 23,
"g": 34,
"b": 126
},
"hsl": {
"h": 233.592,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.31749,
"c": 0.15292,
"h": 269.3
},
"luminance": 0.02833
}Semantic roles & 50–950 ramp
primary
#17227E
secondary
#B3A63E
accent
#D93CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F