#21219F#21219F
#21219F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.193 H 271.1°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).
Color values
| HEX | #21219F |
|---|---|
| RGB | rgb(33, 33, 159) |
| HSL | hsl(240, 66%, 38%) |
| HSV | hsv(240, 79%, 62%) |
| CMYK | cmyk(79.2%, 79.2%, 0%, 37.6%) |
| CIE-LAB | lab(23.38, 44.01, -66.66) |
| CIE-LCH | lch(23.38, 79.87, 303.43°) |
| OKLab | oklab(35.85% 0.0039 -0.193) |
| OKLCH | oklch(35.85% 0.193 271.1) |
| XYZ | xyz(7.4269, 3.9134, 33.1581) |
| Luminance | 0.0391 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.94
Cobalt Blue
#030AA7
ΔE00 3.84
Indigo Blue
#3A18B1
ΔE00 3.95
Royal Blue (survey)
#0504AA
ΔE00 4.37
Ultramarine
#2000B1
ΔE00 4.69
True Blue
#010FCC
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21219F #9F9F21
analogous
#21609F #21219F #60219F
triadic
#21219F #9F2121 #219F21
tetradic
#21219F #9F2160 #9F9F21 #219F60
square
#21219F #9F2160 #9F9F21 #219F60
split-complementary
#21219F #9F6021 #609F21
monochromatic
#0C0C3A #16166C #21219F #2C2CD2 #5D5DDD
Accessibility & contrast
On white
11.78
#21219F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#21219F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21219F
11.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21219F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21219F | 1.00 | 11.78 | 1.78 | 11.78 |
| #FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00319D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #21219f; /* rgb */ color: rgb(33, 33, 159); /* oklch */ color: oklch(35.8% 0.193 271.1);
Tailwind
colors: {
custom: {
50: '#745fbd',
500: '#21219f',
950: '#000000',
},
}SCSS
$custom: #21219f; $custom-light: #745fbd; $custom-dark: #000000;
JSON
{
"hex": "#21219f",
"rgb": {
"r": 33,
"g": 33,
"b": 159
},
"hsl": {
"h": 240,
"s": 65.625,
"l": 37.647
},
"oklch": {
"l": 0.35847,
"c": 0.19302,
"h": 271.1
},
"luminance": 0.03914
}Semantic roles & 50–950 ramp
primary
#21219F
secondary
#C2C25A
accent
#E93FE9
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981