#21148E#21148E
#21148E is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.183 H 273.7°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).
Color values
| HEX | #21148E |
|---|---|
| RGB | rgb(33, 20, 142) |
| HSL | hsl(246, 75%, 32%) |
| HSV | hsv(246, 86%, 56%) |
| CMYK | cmyk(76.8%, 85.9%, 0%, 44.3%) |
| CIE-LAB | lab(19.12, 44.98, -63.23) |
| CIE-LCH | lch(19.12, 77.60, 305.43°) |
| OKLab | oklab(32.29% 0.012 -0.1828) |
| OKLCH | oklch(32.29% 0.183 273.7) |
| XYZ | xyz(5.7582, 2.7760, 25.8183) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 1.60
Darkblue
#00008B
ΔE00 3.35
Cobalt Blue
#030AA7
ΔE00 3.53
Royal Blue (survey)
#0504AA
ΔE00 4.00
Indigo (survey)
#380282
ΔE00 4.15
Navy
#000080
ΔE00 4.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21148E #818E14
analogous
#14448E #21148E #5E148E
triadic
#21148E #8E2114 #148E21
tetradic
#21148E #8E1444 #818E14 #148E5E
square
#21148E #8E1444 #818E14 #148E5E
split-complementary
#21148E #8E5E14 #448E14
monochromatic
#080523 #150C58 #21148E #2D1CC4 #4B39E3
Accessibility & contrast
On white
13.50
#21148E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#21148E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21148E
13.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21148E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21148E | 1.00 | 13.50 | 1.56 | 13.50 |
| #FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.50 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003491
Deuteranopia (green-blind)
#00298C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #21148e; /* rgb */ color: rgb(33, 20, 142); /* oklch */ color: oklch(32.3% 0.183 273.7);
Tailwind
colors: {
custom: {
50: '#7157b0',
500: '#21148e',
950: '#000000',
},
}SCSS
$custom: #21148e; $custom-light: #7157b0; $custom-dark: #000000;
JSON
{
"hex": "#21148e",
"rgb": {
"r": 33,
"g": 20,
"b": 142
},
"hsl": {
"h": 246.393,
"s": 75.309,
"l": 31.765
},
"oklch": {
"l": 0.32292,
"c": 0.18323,
"h": 273.7
},
"luminance": 0.02777
}Semantic roles & 50–950 ramp
primary
#21148E
secondary
#B4C23C
accent
#F236DE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880