#21168E#21168E
#21168E is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.182 H 273.6°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #21168E |
|---|---|
| RGB | rgb(33, 22, 142) |
| HSL | hsl(246, 73%, 32%) |
| HSV | hsv(246, 85%, 56%) |
| CMYK | cmyk(76.8%, 84.5%, 0%, 44.3%) |
| CIE-LAB | lab(19.43, 44.07, -62.72) |
| CIE-LCH | lch(19.43, 76.66, 305.09°) |
| OKLab | oklab(32.5% 0.0114 -0.1814) |
| OKLCH | oklch(32.5% 0.182 273.6) |
| XYZ | xyz(5.7950, 2.8495, 25.8306) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.47
Cobalt Blue
#030AA7
ΔE00 3.65
Darkblue
#00008B
ΔE00 3.66
Royal Blue (survey)
#0504AA
ΔE00 4.15
Indigo (survey)
#380282
ΔE00 4.39
Navy
#000080
ΔE00 4.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21168E #838E16
analogous
#16478E #21168E #5D168E
triadic
#21168E #8E2116 #168E21
tetradic
#21168E #8E1647 #838E16 #168E5D
square
#21168E #8E1647 #838E16 #168E5D
split-complementary
#21168E #8E5D16 #478E16
monochromatic
#080624 #150E59 #21168E #2D1EC3 #4C3DE1
Accessibility & contrast
On white
13.38
#21168E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#21168E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21168E
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21168E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21168E | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003D54
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #21168e; /* rgb */ color: rgb(33, 22, 142); /* oklch */ color: oklch(32.5% 0.182 273.6);
Tailwind
colors: {
custom: {
50: '#7158b0',
500: '#21168e',
950: '#000000',
},
}SCSS
$custom: #21168e; $custom-light: #7158b0; $custom-dark: #000000;
JSON
{
"hex": "#21168e",
"rgb": {
"r": 33,
"g": 22,
"b": 142
},
"hsl": {
"h": 245.5,
"s": 73.171,
"l": 32.157
},
"oklch": {
"l": 0.32503,
"c": 0.18176,
"h": 273.6
},
"luminance": 0.0285
}Semantic roles & 50–950 ramp
primary
#21168E
secondary
#B5C13F
accent
#F038DF
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880