#21218C#21218C
#21218C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.170 H 272.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).
Color values
| HEX | #21218C |
|---|---|
| RGB | rgb(33, 33, 140) |
| HSL | hsl(240, 62%, 34%) |
| HSV | hsv(240, 76%, 55%) |
| CMYK | cmyk(76.4%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(21.22, 37.57, -58.51) |
| CIE-LCH | lch(21.22, 69.53, 302.70°) |
| OKLab | oklab(33.69% 0.0076 -0.1693) |
| OKLCH | oklch(33.69% 0.17 272.6) |
| XYZ | xyz(5.9031, 3.3039, 25.1325) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.63
Midnight Blue
#191970
ΔE00 4.56
Cobalt Blue
#030AA7
ΔE00 5.29
Royal Blue (survey)
#0504AA
ΔE00 5.88
Darkblue
#00008B
ΔE00 5.90
Indigo Blue
#3A18B1
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21218C #8C8C21
analogous
#21578C #21218C #57218C
triadic
#21218C #8C2121 #218C21
tetradic
#21218C #8C2157 #8C8C21 #218C57
square
#21218C #8C2157 #8C8C21 #218C57
split-complementary
#21218C #8C5721 #578C21
monochromatic
#0A0A29 #15155A #21218C #2D2DBE #5151D6
Accessibility & contrast
On white
12.64
#21218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#21218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21218C
12.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21218C | 1.00 | 12.64 | 1.66 | 12.64 |
| #FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #21218c; /* rgb */ color: rgb(33, 33, 140); /* oklch */ color: oklch(33.7% 0.170 272.6);
Tailwind
colors: {
custom: {
50: '#6f5eaf',
500: '#21218c',
950: '#000000',
},
}SCSS
$custom: #21218c; $custom-light: #6f5eaf; $custom-dark: #000000;
JSON
{
"hex": "#21218c",
"rgb": {
"r": 33,
"g": 33,
"b": 140
},
"hsl": {
"h": 240,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.33688,
"c": 0.1695,
"h": 272.6
},
"luminance": 0.03304
}Semantic roles & 50–950 ramp
primary
#21218C
secondary
#B9B94F
accent
#E543E5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F