#21167F#21167F
#21167F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.7% C 0.164 H 275.5°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).
Color values
| HEX | #21167F |
|---|---|
| RGB | rgb(33, 22, 127) |
| HSL | hsl(246, 70%, 29%) |
| HSV | hsv(246, 83%, 50%) |
| CMYK | cmyk(74%, 82.7%, 0%, 50.2%) |
| CIE-LAB | lab(17.59, 39.28, -56.32) |
| CIE-LCH | lch(17.59, 68.67, 304.90°) |
| OKLab | oklab(30.7% 0.0156 -0.1628) |
| OKLCH | oklch(30.7% 0.164 275.5) |
| XYZ | xyz(4.7436, 2.4290, 20.2934) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.88
Royal
#0C1793
ΔE00 3.12
Navy
#000080
ΔE00 4.03
Darkblue
#00008B
ΔE00 4.08
Dark Royal Blue
#02066F
ΔE00 4.18
Indigo (survey)
#380282
ΔE00 4.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21167F #747F16
analogous
#16407F #21167F #56167F
triadic
#21167F #7F2116 #167F21
tetradic
#21167F #7F1640 #747F16 #167F56
square
#21167F #7F1640 #747F16 #167F56
split-complementary
#21167F #7F5616 #407F16
monochromatic
#07051A #130D4B #21167F #2F1FB3 #4534DC
Accessibility & contrast
On white
14.13
#21167F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#21167F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21167F
14.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21167F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21167F | 1.00 | 14.13 | 1.49 | 14.13 |
| #FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003082
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00374B
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #21167f; /* rgb */ color: rgb(33, 22, 127); /* oklch */ color: oklch(30.7% 0.164 275.5);
Tailwind
colors: {
custom: {
50: '#6d56a5',
500: '#21167f',
950: '#000000',
},
}SCSS
$custom: #21167f; $custom-light: #6d56a5; $custom-dark: #000000;
JSON
{
"hex": "#21167f",
"rgb": {
"r": 33,
"g": 22,
"b": 127
},
"hsl": {
"h": 246.286,
"s": 70.47,
"l": 29.216
},
"oklch": {
"l": 0.30699,
"c": 0.16358,
"h": 275.5
},
"luminance": 0.02429
}Semantic roles & 50–950 ramp
primary
#21167F
secondary
#A7B43D
accent
#ED3BDB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F