#21147B#21147B
#21147B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.160 H 276.3°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).
Color values
| HEX | #21147B |
|---|---|
| RGB | rgb(33, 20, 123) |
| HSL | hsl(248, 72%, 28%) |
| HSV | hsv(248, 84%, 48%) |
| CMYK | cmyk(73.2%, 83.7%, 0%, 51.8%) |
| CIE-LAB | lab(16.76, 39.00, -55.15) |
| CIE-LCH | lch(16.76, 67.54, 305.27°) |
| OKLab | oklab(29.98% 0.0176 -0.1594) |
| OKLCH | oklch(29.98% 0.16 276.3) |
| XYZ | xyz(4.4513, 2.2533, 18.9354) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.62
Dark Royal Blue
#02066F
ΔE00 3.65
Royal
#0C1793
ΔE00 3.73
Deep Blue
#040273
ΔE00 3.79
Navy
#000080
ΔE00 3.80
Darkblue
#00008B
ΔE00 4.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21147B #6E7B14
analogous
#143A7B #21147B #54147B
triadic
#21147B #7B2114 #147B21
tetradic
#21147B #7B143A #6E7B14 #147B54
square
#21147B #7B143A #6E7B14 #147B54
split-complementary
#21147B #7B5414 #3A7B14
monochromatic
#07041A #130B46 #21147B #2F1DB0 #432DDD
Accessibility & contrast
On white
14.47
#21147B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#21147B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21147B
14.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21147B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21147B | 1.00 | 14.47 | 1.45 | 14.47 |
| #FFFFFF | 14.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7E
Deuteranopia (green-blind)
#002579
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #21147b; /* rgb */ color: rgb(33, 20, 123); /* oklch */ color: oklch(30.0% 0.160 276.3);
Tailwind
colors: {
custom: {
50: '#6c55a2',
500: '#21147b',
950: '#000000',
},
}SCSS
$custom: #21147b; $custom-light: #6c55a2; $custom-dark: #000000;
JSON
{
"hex": "#21147b",
"rgb": {
"r": 33,
"g": 20,
"b": 123
},
"hsl": {
"h": 247.573,
"s": 72.028,
"l": 28.039
},
"oklch": {
"l": 0.29982,
"c": 0.16036,
"h": 276.3
},
"luminance": 0.02254
}Semantic roles & 50–950 ramp
primary
#21147B
secondary
#A2B13A
accent
#EF39D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F