#21158E#21158E
#21158E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.4% C 0.182 H 273.7°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).
Color values
| HEX | #21158E |
|---|---|
| RGB | rgb(33, 21, 142) |
| HSL | hsl(246, 74%, 32%) |
| HSV | hsv(246, 85%, 56%) |
| CMYK | cmyk(76.8%, 85.2%, 0%, 44.3%) |
| CIE-LAB | lab(19.28, 44.53, -62.98) |
| CIE-LCH | lch(19.28, 77.13, 305.26°) |
| OKLab | oklab(32.4% 0.0117 -0.1821) |
| OKLCH | oklch(32.4% 0.183 273.7) |
| XYZ | xyz(5.7762, 2.8121, 25.8243) |
| Luminance | 0.0281 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.52
Darkblue
#00008B
ΔE00 3.50
Cobalt Blue
#030AA7
ΔE00 3.58
Royal Blue (survey)
#0504AA
ΔE00 4.07
Indigo (survey)
#380282
ΔE00 4.27
Navy
#000080
ΔE00 4.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21158E #828E15
analogous
#15468E #21158E #5D158E
triadic
#21158E #8E2115 #158E21
tetradic
#21158E #8E1546 #828E15 #158E5D
square
#21158E #8E1546 #828E15 #158E5D
split-complementary
#21158E #8E5D15 #468E15
monochromatic
#080523 #150D59 #21158E #2D1DC3 #4C3BE2
Accessibility & contrast
On white
13.44
#21158E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#21158E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21158E
13.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21158E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21158E | 1.00 | 13.44 | 1.56 | 13.44 |
| #FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #21158e; /* rgb */ color: rgb(33, 21, 142); /* oklch */ color: oklch(32.4% 0.182 273.7);
Tailwind
colors: {
custom: {
50: '#7157b0',
500: '#21158e',
950: '#000000',
},
}SCSS
$custom: #21158e; $custom-light: #7157b0; $custom-dark: #000000;
JSON
{
"hex": "#21158e",
"rgb": {
"r": 33,
"g": 21,
"b": 142
},
"hsl": {
"h": 245.95,
"s": 74.233,
"l": 31.961
},
"oklch": {
"l": 0.32396,
"c": 0.1825,
"h": 273.7
},
"luminance": 0.02813
}Semantic roles & 50–950 ramp
primary
#21158E
secondary
#B4C23D
accent
#F137DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880