#21218F#21218F
#21218F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.173 H 272.3°. Best body text is #FFFFFF at 12.51:1 contrast (WCAG AA passes).
Color values
| HEX | #21218F |
|---|---|
| RGB | rgb(33, 33, 143) |
| HSL | hsl(240, 63%, 35%) |
| HSV | hsv(240, 77%, 56%) |
| CMYK | cmyk(76.9%, 76.9%, 0%, 43.9%) |
| CIE-LAB | lab(21.56, 38.61, -59.82) |
| CIE-LCH | lch(21.56, 71.20, 302.83°) |
| OKLab | oklab(34.02% 0.0071 -0.1731) |
| OKLCH | oklch(34.02% 0.173 272.3) |
| XYZ | xyz(6.1273, 3.3936, 26.3134) |
| Luminance | 0.0339 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.46
Cobalt Blue
#030AA7
ΔE00 4.97
Midnight Blue
#191970
ΔE00 4.97
Royal Blue (survey)
#0504AA
ΔE00 5.56
Indigo Blue
#3A18B1
ΔE00 5.85
Darkblue
#00008B
ΔE00 5.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21218F #8F8F21
analogous
#21588F #21218F #58218F
triadic
#21218F #8F2121 #218F21
tetradic
#21218F #8F2158 #8F8F21 #218F58
square
#21218F #8F2158 #8F8F21 #218F58
split-complementary
#21218F #8F5821 #588F21
monochromatic
#0A0A2C #16165D #21218F #2C2CC1 #5353D7
Accessibility & contrast
On white
12.51
#21218F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#21218F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21218F
12.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21218F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21218F | 1.00 | 12.51 | 1.68 | 12.51 |
| #FFFFFF | 12.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#002E8D
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #21218f; /* rgb */ color: rgb(33, 33, 143); /* oklch */ color: oklch(34.0% 0.173 272.3);
Tailwind
colors: {
custom: {
50: '#705eb1',
500: '#21218f',
950: '#000000',
},
}SCSS
$custom: #21218f; $custom-light: #705eb1; $custom-dark: #000000;
JSON
{
"hex": "#21218f",
"rgb": {
"r": 33,
"g": 33,
"b": 143
},
"hsl": {
"h": 240,
"s": 62.5,
"l": 34.51
},
"oklch": {
"l": 0.34023,
"c": 0.17329,
"h": 272.3
},
"luminance": 0.03394
}Semantic roles & 50–950 ramp
primary
#21218F
secondary
#BBBB51
accent
#E642E6
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090411
muted
#7B7980