#17218E#17218E
#17218E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.175 H 268.8°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).
Color values
| HEX | #17218E |
|---|---|
| RGB | rgb(23, 33, 142) |
| HSL | hsl(235, 72%, 32%) |
| HSV | hsv(235, 84%, 56%) |
| CMYK | cmyk(83.8%, 76.8%, 0%, 44.3%) |
| CIE-LAB | lab(20.91, 37.49, -60.28) |
| CIE-LCH | lch(20.91, 70.99, 301.88°) |
| OKLab | oklab(33.39% -0.0037 -0.1747) |
| OKLCH | oklch(33.39% 0.175 268.8) |
| XYZ | xyz(5.7780, 3.2222, 25.9034) |
| Luminance | 0.0322 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.41
Midnight Blue
#191970
ΔE00 4.78
Cobalt Blue
#030AA7
ΔE00 5.14
Royal Blue (survey)
#0504AA
ΔE00 5.76
Darkblue
#00008B
ΔE00 5.88
Navy
#000080
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#17218E #8E8417
analogous
#175D8E #17218E #49178E
triadic
#17218E #8E1721 #218E17
tetradic
#17218E #8E175D #8E8417 #178E49
square
#17218E #8E175D #8E8417 #178E49
split-complementary
#17218E #8E4917 #5D8E17
monochromatic
#060925 #0E1559 #17218E #202DC3 #3F4DE0
Accessibility & contrast
On white
12.77
#17218E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#17218E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #17218E
12.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##17218E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##17218E | 1.00 | 12.77 | 1.64 | 12.77 |
| #FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #17218e; /* rgb */ color: rgb(23, 33, 142); /* oklch */ color: oklch(33.4% 0.175 268.8);
Tailwind
colors: {
custom: {
50: '#6d5db0',
500: '#17218e',
950: '#000000',
},
}SCSS
$custom: #17218e; $custom-light: #6d5db0; $custom-dark: #000000;
JSON
{
"hex": "#17218e",
"rgb": {
"r": 23,
"g": 33,
"b": 142
},
"hsl": {
"h": 234.958,
"s": 72.121,
"l": 32.353
},
"oklch": {
"l": 0.33389,
"c": 0.17472,
"h": 268.8
},
"luminance": 0.03223
}Semantic roles & 50–950 ramp
primary
#17218E
secondary
#C0B640
accent
#E039EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980