#21318E#21318E
#21318E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.154 H 269.4°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).
Color values
| HEX | #21318E |
|---|---|
| RGB | rgb(33, 49, 142) |
| HSL | hsl(231, 62%, 34%) |
| HSV | hsv(231, 77%, 56%) |
| CMYK | cmyk(76.8%, 65.5%, 0%, 44.3%) |
| CIE-LAB | lab(25.17, 28.10, -53.25) |
| CIE-LCH | lch(25.17, 60.21, 297.82°) |
| OKLab | oklab(36.6% -0.0016 -0.154) |
| OKLCH | oklch(36.6% 0.154 269.4) |
| XYZ | xyz(6.6063, 4.4722, 26.1010) |
| Luminance | 0.0447 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 4.41
Blueberry
#464196
ΔE00 6.26
Darkslateblue
#483D8B
ΔE00 6.46
Royal
#0C1793
ΔE00 6.84
Midnight Blue
#191970
ΔE00 7.46
Cobalt
#0047AB
ΔE00 8.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21318E #8E7E21
analogous
#21688E #21318E #48218E
triadic
#21318E #8E2131 #318E21
tetradic
#21318E #8E2168 #8E7E21 #218E48
square
#21318E #8E2168 #8E7E21 #218E48
split-complementary
#21318E #8E4821 #688E21
monochromatic
#0A0F2B #15205C #21318E #2D42C0 #5266D7
Accessibility & contrast
On white
11.08
#21318E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#21318E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21318E
11.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21318E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21318E | 1.00 | 11.08 | 1.89 | 11.08 |
| #FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00378C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #21318e; /* rgb */ color: rgb(33, 49, 142); /* oklch */ color: oklch(36.6% 0.154 269.4);
Tailwind
colors: {
custom: {
50: '#6e69b0',
500: '#21318e',
950: '#000000',
},
}SCSS
$custom: #21318e; $custom-light: #6e69b0; $custom-dark: #000000;
JSON
{
"hex": "#21318e",
"rgb": {
"r": 33,
"g": 49,
"b": 142
},
"hsl": {
"h": 231.193,
"s": 62.286,
"l": 34.314
},
"oklch": {
"l": 0.36605,
"c": 0.15398,
"h": 269.4
},
"luminance": 0.04473
}Semantic roles & 50–950 ramp
primary
#21318E
secondary
#BAAB50
accent
#CD42E5
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80