#21147D#21147D
#21147D is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.2% C 0.163 H 276.0°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).
Color values
| HEX | #21147D |
|---|---|
| RGB | rgb(33, 20, 125) |
| HSL | hsl(247, 72%, 28%) |
| HSV | hsv(247, 84%, 49%) |
| CMYK | cmyk(73.6%, 84%, 0%, 51%) |
| CIE-LAB | lab(17.01, 39.64, -56.02) |
| CIE-LCH | lch(17.01, 68.63, 305.29°) |
| OKLab | oklab(30.22% 0.017 -0.1619) |
| OKLCH | oklch(30.22% 0.163 276) |
| XYZ | xyz(4.5778, 2.3039, 19.6015) |
| Luminance | 0.0230 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.86
Royal
#0C1793
ΔE00 3.45
Navy
#000080
ΔE00 3.72
Dark Royal Blue
#02066F
ΔE00 3.78
Deep Blue
#040273
ΔE00 3.87
Darkblue
#00008B
ΔE00 3.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21147D #707D14
analogous
#143B7D #21147D #55147D
triadic
#21147D #7D2114 #147D21
tetradic
#21147D #7D143B #707D14 #147D55
square
#21147D #7D143B #707D14 #147D55
split-complementary
#21147D #7D5514 #3B7D14
monochromatic
#07041A #130C48 #21147D #2F1CB2 #442EDE
Accessibility & contrast
On white
14.38
#21147D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#21147D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21147D
14.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21147D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21147D | 1.00 | 14.38 | 1.46 | 14.38 |
| #FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E80
Deuteranopia (green-blind)
#00257B
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #21147d; /* rgb */ color: rgb(33, 20, 125); /* oklch */ color: oklch(30.2% 0.163 276.0);
Tailwind
colors: {
custom: {
50: '#6d55a4',
500: '#21147d',
950: '#000000',
},
}SCSS
$custom: #21147d; $custom-light: #6d55a4; $custom-dark: #000000;
JSON
{
"hex": "#21147d",
"rgb": {
"r": 33,
"g": 20,
"b": 125
},
"hsl": {
"h": 247.429,
"s": 72.414,
"l": 28.431
},
"oklch": {
"l": 0.30221,
"c": 0.16282,
"h": 276
},
"luminance": 0.02304
}Semantic roles & 50–950 ramp
primary
#21147D
secondary
#A4B23A
accent
#EF39D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F