#21147E#21147E
#21147E is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.3% C 0.164 H 275.8°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).
Color values
| HEX | #21147E |
|---|---|
| RGB | rgb(33, 20, 126) |
| HSL | hsl(247, 73%, 29%) |
| HSV | hsv(247, 84%, 49%) |
| CMYK | cmyk(73.8%, 84.1%, 0%, 50.6%) |
| CIE-LAB | lab(17.13, 39.96, -56.45) |
| CIE-LCH | lch(17.13, 69.17, 305.29°) |
| OKLab | oklab(30.34% 0.0167 -0.1632) |
| OKLCH | oklch(30.34% 0.164 275.8) |
| XYZ | xyz(4.6420, 2.3296, 19.9396) |
| Luminance | 0.0233 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.98
Royal
#0C1793
ΔE00 3.31
Navy
#000080
ΔE00 3.70
Darkblue
#00008B
ΔE00 3.83
Dark Royal Blue
#02066F
ΔE00 3.86
Deep Blue
#040273
ΔE00 3.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21147E #717E14
analogous
#143C7E #21147E #56147E
triadic
#21147E #7E2114 #147E21
tetradic
#21147E #7E143C #717E14 #147E56
square
#21147E #7E143C #717E14 #147E56
split-complementary
#21147E #7E5614 #3C7E14
monochromatic
#07041A #130C49 #21147E #2F1CB3 #442EDE
Accessibility & contrast
On white
14.32
#21147E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#21147E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21147E
14.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21147E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21147E | 1.00 | 14.32 | 1.47 | 14.32 |
| #FFFFFF | 14.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #21147e; /* rgb */ color: rgb(33, 20, 126); /* oklch */ color: oklch(30.3% 0.164 275.8);
Tailwind
colors: {
custom: {
50: '#6d55a5',
500: '#21147e',
950: '#000000',
},
}SCSS
$custom: #21147e; $custom-light: #6d55a5; $custom-dark: #000000;
JSON
{
"hex": "#21147e",
"rgb": {
"r": 33,
"g": 20,
"b": 126
},
"hsl": {
"h": 247.358,
"s": 72.603,
"l": 28.627
},
"oklch": {
"l": 0.30341,
"c": 0.16404,
"h": 275.8
},
"luminance": 0.0233
}Semantic roles & 50–950 ramp
primary
#21147E
secondary
#A5B33A
accent
#EF38D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F