#21147F#21147F
#21147F is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.5% C 0.165 H 275.7°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).
Color values
| HEX | #21147F |
|---|---|
| RGB | rgb(33, 20, 127) |
| HSL | hsl(247, 73%, 29%) |
| HSV | hsv(247, 84%, 50%) |
| CMYK | cmyk(74%, 84.3%, 0%, 50.2%) |
| CIE-LAB | lab(17.25, 40.28, -56.89) |
| CIE-LCH | lch(17.25, 69.71, 305.30°) |
| OKLab | oklab(30.46% 0.0164 -0.1645) |
| OKLCH | oklch(30.46% 0.165 275.7) |
| XYZ | xyz(4.7069, 2.3555, 20.2812) |
| Luminance | 0.0236 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.10
Royal
#0C1793
ΔE00 3.17
Navy
#000080
ΔE00 3.68
Darkblue
#00008B
ΔE00 3.75
Dark Royal Blue
#02066F
ΔE00 3.94
Indigo (survey)
#380282
ΔE00 3.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21147F #727F14
analogous
#143D7F #21147F #57147F
triadic
#21147F #7F2114 #147F21
tetradic
#21147F #7F143D #727F14 #147F57
square
#21147F #7F143D #727F14 #147F57
split-complementary
#21147F #7F5714 #3D7F14
monochromatic
#07041A #130C4A #21147F #2F1CB4 #442FDE
Accessibility & contrast
On white
14.27
#21147F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#21147F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21147F
14.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21147F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21147F | 1.00 | 14.27 | 1.47 | 14.27 |
| #FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F82
Deuteranopia (green-blind)
#00267D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #21147f; /* rgb */ color: rgb(33, 20, 127); /* oklch */ color: oklch(30.5% 0.165 275.7);
Tailwind
colors: {
custom: {
50: '#6d55a5',
500: '#21147f',
950: '#000000',
},
}SCSS
$custom: #21147f; $custom-light: #6d55a5; $custom-dark: #000000;
JSON
{
"hex": "#21147f",
"rgb": {
"r": 33,
"g": 20,
"b": 127
},
"hsl": {
"h": 247.29,
"s": 72.789,
"l": 28.824
},
"oklch": {
"l": 0.30462,
"c": 0.16527,
"h": 275.7
},
"luminance": 0.02356
}Semantic roles & 50–950 ramp
primary
#21147F
secondary
#A5B43B
accent
#EF38D9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F