#17218F#17218F
#17218F is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.5% C 0.176 H 268.8°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).
Color values
| HEX | #17218F |
|---|---|
| RGB | rgb(23, 33, 143) |
| HSL | hsl(235, 72%, 33%) |
| HSV | hsv(235, 84%, 56%) |
| CMYK | cmyk(83.9%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(21.03, 37.85, -60.72) |
| CIE-LCH | lch(21.03, 71.55, 301.94°) |
| OKLab | oklab(33.51% -0.0038 -0.1759) |
| OKLCH | oklch(33.51% 0.176 268.8) |
| XYZ | xyz(5.8534, 3.2523, 26.3005) |
| Luminance | 0.0325 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.35
Midnight Blue
#191970
ΔE00 4.91
Cobalt Blue
#030AA7
ΔE00 5.03
Royal Blue (survey)
#0504AA
ΔE00 5.66
Darkblue
#00008B
ΔE00 5.87
Indigo Blue
#3A18B1
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#17218F #8F8517
analogous
#175D8F #17218F #49178F
triadic
#17218F #8F1721 #218F17
tetradic
#17218F #8F175D #8F8517 #178F49
square
#17218F #8F175D #8F8517 #178F49
split-complementary
#17218F #8F4917 #5D8F17
monochromatic
#060926 #0F155A #17218F #1F2DC4 #404DE0
Accessibility & contrast
On white
12.72
#17218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#17218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #17218F
12.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##17218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##17218F | 1.00 | 12.72 | 1.65 | 12.72 |
| #FFFFFF | 12.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#002C8D
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #17218f; /* rgb */ color: rgb(23, 33, 143); /* oklch */ color: oklch(33.5% 0.176 268.8);
Tailwind
colors: {
custom: {
50: '#6d5db1',
500: '#17218f',
950: '#000000',
},
}SCSS
$custom: #17218f; $custom-light: #6d5db1; $custom-dark: #000000;
JSON
{
"hex": "#17218f",
"rgb": {
"r": 23,
"g": 33,
"b": 143
},
"hsl": {
"h": 235,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.33505,
"c": 0.17598,
"h": 268.8
},
"luminance": 0.03253
}Semantic roles & 50–950 ramp
primary
#17218F
secondary
#C1B641
accent
#E039EF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980