#21147C#21147C
#21147C is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.1% C 0.162 H 276.1°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).
Color values
| HEX | #21147C |
|---|---|
| RGB | rgb(33, 20, 124) |
| HSL | hsl(248, 72%, 28%) |
| HSV | hsv(248, 84%, 49%) |
| CMYK | cmyk(73.4%, 83.9%, 0%, 51.4%) |
| CIE-LAB | lab(16.89, 39.32, -55.58) |
| CIE-LCH | lch(16.89, 68.09, 305.28°) |
| OKLab | oklab(30.1% 0.0173 -0.1607) |
| OKLCH | oklch(30.1% 0.162 276.1) |
| XYZ | xyz(4.5143, 2.2785, 19.2668) |
| Luminance | 0.0228 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.74
Royal
#0C1793
ΔE00 3.59
Dark Royal Blue
#02066F
ΔE00 3.71
Navy
#000080
ΔE00 3.76
Deep Blue
#040273
ΔE00 3.83
Darkblue
#00008B
ΔE00 4.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21147C #6F7C14
analogous
#143B7C #21147C #55147C
triadic
#21147C #7C2114 #147C21
tetradic
#21147C #7C143B #6F7C14 #147C55
square
#21147C #7C143B #6F7C14 #147C55
split-complementary
#21147C #7C5514 #3B7C14
monochromatic
#07041A #130B47 #21147C #2F1DB1 #432DDD
Accessibility & contrast
On white
14.43
#21147C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.46
#21147C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21147C
14.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21147C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21147C | 1.00 | 14.43 | 1.46 | 14.43 |
| #FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.46 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003549
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #21147c; /* rgb */ color: rgb(33, 20, 124); /* oklch */ color: oklch(30.1% 0.162 276.1);
Tailwind
colors: {
custom: {
50: '#6c55a3',
500: '#21147c',
950: '#000000',
},
}SCSS
$custom: #21147c; $custom-light: #6c55a3; $custom-dark: #000000;
JSON
{
"hex": "#21147c",
"rgb": {
"r": 33,
"g": 20,
"b": 124
},
"hsl": {
"h": 247.5,
"s": 72.222,
"l": 28.235
},
"oklch": {
"l": 0.30101,
"c": 0.16159,
"h": 276.1
},
"luminance": 0.02279
}Semantic roles & 50–950 ramp
primary
#21147C
secondary
#A3B23A
accent
#EF39D8
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F