#21168C#21168C
#21168C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.179 H 273.8°. Best body text is #FFFFFF at 13.48:1 contrast (WCAG AA passes).
Color values
| HEX | #21168C |
|---|---|
| RGB | rgb(33, 22, 140) |
| HSL | hsl(246, 73%, 32%) |
| HSV | hsv(246, 84%, 55%) |
| CMYK | cmyk(76.4%, 84.3%, 0%, 45.1%) |
| CIE-LAB | lab(19.18, 43.44, -61.89) |
| CIE-LCH | lch(19.18, 75.61, 305.07°) |
| OKLab | oklab(32.26% 0.0119 -0.179) |
| OKLCH | oklch(32.26% 0.179 273.8) |
| XYZ | xyz(5.6462, 2.7900, 25.0468) |
| Luminance | 0.0279 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.60
Darkblue
#00008B
ΔE00 3.63
Cobalt Blue
#030AA7
ΔE00 3.90
Indigo (survey)
#380282
ΔE00 4.31
Navy
#000080
ΔE00 4.31
Royal Blue (survey)
#0504AA
ΔE00 4.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21168C #818C16
analogous
#16468C #21168C #5C168C
triadic
#21168C #8C2116 #168C21
tetradic
#21168C #8C1646 #818C16 #168C5C
square
#21168C #8C1646 #818C16 #168C5C
split-complementary
#21168C #8C5C16 #468C16
monochromatic
#080522 #150E57 #21168C #2D1EC1 #4B3CE0
Accessibility & contrast
On white
13.48
#21168C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#21168C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21168C
13.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21168C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21168C | 1.00 | 13.48 | 1.56 | 13.48 |
| #FFFFFF | 13.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00348F
Deuteranopia (green-blind)
#00298A
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #21168c; /* rgb */ color: rgb(33, 22, 140); /* oklch */ color: oklch(32.3% 0.179 273.8);
Tailwind
colors: {
custom: {
50: '#7057af',
500: '#21168c',
950: '#000000',
},
}SCSS
$custom: #21168c; $custom-light: #7057af; $custom-dark: #000000;
JSON
{
"hex": "#21168c",
"rgb": {
"r": 33,
"g": 22,
"b": 140
},
"hsl": {
"h": 245.593,
"s": 72.84,
"l": 31.765
},
"oklch": {
"l": 0.3226,
"c": 0.17938,
"h": 273.8
},
"luminance": 0.02791
}Semantic roles & 50–950 ramp
primary
#21168C
secondary
#B4C03E
accent
#F038DE
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880