#21297E#21297E
#21297E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.6% C 0.142 H 272.0°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).
Color values
| HEX | #21297E |
|---|---|
| RGB | rgb(33, 41, 126) |
| HSL | hsl(235, 58%, 31%) |
| HSV | hsv(235, 74%, 49%) |
| CMYK | cmyk(73.8%, 67.5%, 0%, 50.6%) |
| CIE-LAB | lab(21.64, 27.41, -49.03) |
| CIE-LCH | lch(21.64, 56.17, 299.21°) |
| OKLab | oklab(33.55% 0.0049 -0.1417) |
| OKLCH | oklch(33.55% 0.142 272) |
| XYZ | xyz(5.1848, 3.4151, 20.1205) |
| Luminance | 0.0342 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.56
Royal
#0C1793
ΔE00 5.92
Sapphire (survey)
#2138AB
ΔE00 7.37
Darkslateblue
#483D8B
ΔE00 7.46
Marine
#042E60
ΔE00 7.76
Blueberry
#464196
ΔE00 8.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21297E #7E7621
analogous
#21577E #21297E #47217E
triadic
#21297E #7E2129 #297E21
tetradic
#21297E #7E2157 #7E7621 #217E47
square
#21297E #7E2157 #7E7621 #217E47
split-complementary
#21297E #7E4721 #577E21
monochromatic
#08091D #14194E #21297E #2E39AE #4A55D0
Accessibility & contrast
On white
12.48
#21297E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#21297E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21297E
12.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21297E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21297E | 1.00 | 12.48 | 1.68 | 12.48 |
| #FFFFFF | 12.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #21297e; /* rgb */ color: rgb(33, 41, 126); /* oklch */ color: oklch(33.6% 0.142 272.0);
Tailwind
colors: {
custom: {
50: '#6b63a4',
500: '#21297e',
950: '#000000',
},
}SCSS
$custom: #21297e; $custom-light: #6b63a4; $custom-dark: #000000;
JSON
{
"hex": "#21297e",
"rgb": {
"r": 33,
"g": 41,
"b": 126
},
"hsl": {
"h": 234.839,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.33551,
"c": 0.14175,
"h": 272
},
"luminance": 0.03416
}Semantic roles & 50–950 ramp
primary
#21297E
secondary
#B1A84A
accent
#D446E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F