#21219E#21219E
#21219E is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.192 H 271.2°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).
Color values
| HEX | #21219E |
|---|---|
| RGB | rgb(33, 33, 158) |
| HSL | hsl(240, 65%, 37%) |
| HSV | hsv(240, 79%, 62%) |
| CMYK | cmyk(79.1%, 79.1%, 0%, 38%) |
| CIE-LAB | lab(23.27, 43.67, -66.24) |
| CIE-LCH | lch(23.27, 79.34, 303.40°) |
| OKLab | oklab(35.73% 0.0041 -0.1918) |
| OKLCH | oklch(35.73% 0.192 271.2) |
| XYZ | xyz(7.3405, 3.8789, 32.7029) |
| Luminance | 0.0388 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.86
Cobalt Blue
#030AA7
ΔE00 3.87
Indigo Blue
#3A18B1
ΔE00 4.05
Royal Blue (survey)
#0504AA
ΔE00 4.41
Ultramarine
#2000B1
ΔE00 4.76
True Blue
#010FCC
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21219E #9E9E21
analogous
#21609E #21219E #60219E
triadic
#21219E #9E2121 #219E21
tetradic
#21219E #9E2160 #9E9E21 #219E60
square
#21219E #9E2160 #9E9E21 #219E60
split-complementary
#21219E #9E6021 #609E21
monochromatic
#0C0C39 #16166B #21219E #2C2CD1 #5C5CDD
Accessibility & contrast
On white
11.82
#21219E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.78
#21219E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21219E
11.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21219E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21219E | 1.00 | 11.82 | 1.78 | 11.82 |
| #FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.78 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00475F
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #21219e; /* rgb */ color: rgb(33, 33, 158); /* oklch */ color: oklch(35.7% 0.192 271.2);
Tailwind
colors: {
custom: {
50: '#745fbc',
500: '#21219e',
950: '#000000',
},
}SCSS
$custom: #21219e; $custom-light: #745fbc; $custom-dark: #000000;
JSON
{
"hex": "#21219e",
"rgb": {
"r": 33,
"g": 33,
"b": 158
},
"hsl": {
"h": 240,
"s": 65.445,
"l": 37.451
},
"oklch": {
"l": 0.35731,
"c": 0.19181,
"h": 271.2
},
"luminance": 0.0388
}Semantic roles & 50–950 ramp
primary
#21219E
secondary
#C1C159
accent
#E83FE8
background
#F7F5FB
surface
#EEE9F7
border
#C9C5D0
text
#0A0512
muted
#7C7981