#21168A#21168A
#21168A is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.177 H 274.0°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).
Color values
| HEX | #21168A |
|---|---|
| RGB | rgb(33, 22, 138) |
| HSL | hsl(246, 73%, 31%) |
| HSV | hsv(246, 84%, 54%) |
| CMYK | cmyk(76.1%, 84.1%, 0%, 45.9%) |
| CIE-LAB | lab(18.94, 42.81, -61.04) |
| CIE-LCH | lch(18.94, 74.56, 305.04°) |
| OKLab | oklab(32.02% 0.0125 -0.1765) |
| OKLCH | oklch(32.02% 0.177 274) |
| XYZ | xyz(5.5000, 2.7316, 24.2772) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.78
Darkblue
#00008B
ΔE00 3.63
Cobalt Blue
#030AA7
ΔE00 4.17
Navy
#000080
ΔE00 4.21
Indigo (survey)
#380282
ΔE00 4.25
Midnight Blue
#191970
ΔE00 4.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21168A #7F8A16
analogous
#16458A #21168A #5B168A
triadic
#21168A #8A2116 #168A21
tetradic
#21168A #8A1645 #7F8A16 #168A5B
square
#21168A #8A1645 #7F8A16 #168A5B
split-complementary
#21168A #8A5B16 #458A16
monochromatic
#080520 #140E55 #21168A #2E1EBF #4A3BE0
Accessibility & contrast
On white
13.58
#21168A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#21168A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21168A
13.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21168A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21168A | 1.00 | 13.58 | 1.55 | 13.58 |
| #FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00338D
Deuteranopia (green-blind)
#002988
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #21168a; /* rgb */ color: rgb(33, 22, 138); /* oklch */ color: oklch(32.0% 0.177 274.0);
Tailwind
colors: {
custom: {
50: '#7057ad',
500: '#21168a',
950: '#000000',
},
}SCSS
$custom: #21168a; $custom-light: #7057ad; $custom-dark: #000000;
JSON
{
"hex": "#21168a",
"rgb": {
"r": 33,
"g": 22,
"b": 138
},
"hsl": {
"h": 245.69,
"s": 72.5,
"l": 31.373
},
"oklch": {
"l": 0.32018,
"c": 0.17698,
"h": 274
},
"luminance": 0.02732
}Semantic roles & 50–950 ramp
primary
#21168A
secondary
#B2BE3E
accent
#EF39DE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F