#21247E#21247E
#21247E is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.148 H 273.2°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).
Color values
| HEX | #21247E |
|---|---|
| RGB | rgb(33, 36, 126) |
| HSL | hsl(238, 58%, 31%) |
| HSV | hsv(238, 74%, 49%) |
| CMYK | cmyk(73.8%, 71.4%, 0%, 50.6%) |
| CIE-LAB | lab(20.40, 30.72, -51.05) |
| CIE-LCH | lch(20.40, 59.58, 301.03°) |
| OKLab | oklab(32.66% 0.0083 -0.1476) |
| OKLCH | oklch(32.66% 0.148 273.2) |
| XYZ | xyz(5.0227, 3.0909, 20.0665) |
| Luminance | 0.0309 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.32
Royal
#0C1793
ΔE00 4.73
Dark Royal Blue
#02066F
ΔE00 6.98
Darkblue
#00008B
ΔE00 7.36
Navy
#000080
ΔE00 7.41
Deep Blue
#040273
ΔE00 7.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21247E #7E7B21
analogous
#21527E #21247E #4C217E
triadic
#21247E #7E2124 #247E21
tetradic
#21247E #7E2152 #7E7B21 #217E4C
square
#21247E #7E2152 #7E7B21 #217E4C
split-complementary
#21247E #7E4C21 #527E21
monochromatic
#08081D #14164E #21247E #2E32AE #4A4ED0
Accessibility & contrast
On white
12.98
#21247E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#21247E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21247E
12.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21247E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21247E | 1.00 | 12.98 | 1.62 | 12.98 |
| #FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.98 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003681
Deuteranopia (green-blind)
#002D7C
Tritanopia (blue-blind)
#003D4E
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #21247e; /* rgb */ color: rgb(33, 36, 126); /* oklch */ color: oklch(32.7% 0.148 273.2);
Tailwind
colors: {
custom: {
50: '#6b5fa4',
500: '#21247e',
950: '#000000',
},
}SCSS
$custom: #21247e; $custom-light: #6b5fa4; $custom-dark: #000000;
JSON
{
"hex": "#21247e",
"rgb": {
"r": 33,
"g": 36,
"b": 126
},
"hsl": {
"h": 238.065,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.32658,
"c": 0.14782,
"h": 273.2
},
"luminance": 0.03091
}Semantic roles & 50–950 ramp
primary
#21247E
secondary
#B1AD4A
accent
#DD46E2
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F