#21167E#21167E
#21167E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.6% C 0.162 H 275.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).
Color values
| HEX | #21167E |
|---|---|
| RGB | rgb(33, 22, 126) |
| HSL | hsl(246, 70%, 29%) |
| HSV | hsv(246, 83%, 49%) |
| CMYK | cmyk(73.8%, 82.5%, 0%, 50.6%) |
| CIE-LAB | lab(17.47, 38.96, -55.88) |
| CIE-LCH | lch(17.47, 68.12, 304.88°) |
| OKLab | oklab(30.58% 0.0159 -0.1616) |
| OKLCH | oklch(30.58% 0.162 275.6) |
| XYZ | xyz(4.6788, 2.4031, 19.9519) |
| Luminance | 0.0240 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.74
Royal
#0C1793
ΔE00 3.26
Navy
#000080
ΔE00 4.05
Dark Royal Blue
#02066F
ΔE00 4.11
Darkblue
#00008B
ΔE00 4.16
Deep Blue
#040273
ΔE00 4.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21167E #737E16
analogous
#163F7E #21167E #55167E
triadic
#21167E #7E2116 #167E21
tetradic
#21167E #7E163F #737E16 #167E55
square
#21167E #7E163F #737E16 #167E55
split-complementary
#21167E #7E5516 #3F7E16
monochromatic
#07051A #130D4A #21167E #2F1FB2 #4533DB
Accessibility & contrast
On white
14.18
#21167E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.48
#21167E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21167E
14.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21167E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21167E | 1.00 | 14.18 | 1.48 | 14.18 |
| #FFFFFF | 14.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.48 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00267C
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #21167e; /* rgb */ color: rgb(33, 22, 126); /* oklch */ color: oklch(30.6% 0.162 275.6);
Tailwind
colors: {
custom: {
50: '#6d56a5',
500: '#21167e',
950: '#000000',
},
}SCSS
$custom: #21167e; $custom-light: #6d56a5; $custom-dark: #000000;
JSON
{
"hex": "#21167e",
"rgb": {
"r": 33,
"g": 22,
"b": 126
},
"hsl": {
"h": 246.346,
"s": 70.27,
"l": 29.02
},
"oklch": {
"l": 0.3058,
"c": 0.16235,
"h": 275.6
},
"luminance": 0.02404
}Semantic roles & 50–950 ramp
primary
#21167E
secondary
#A6B33D
accent
#ED3BDA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F