#21297C#21297C
#21297C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.139 H 272.1°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).
Color values
| HEX | #21297C |
|---|---|
| RGB | rgb(33, 41, 124) |
| HSL | hsl(235, 58%, 31%) |
| HSV | hsv(235, 73%, 49%) |
| CMYK | cmyk(73.4%, 66.9%, 0%, 51.4%) |
| CIE-LAB | lab(21.45, 26.65, -48.07) |
| CIE-LCH | lch(21.45, 54.96, 299.00°) |
| OKLab | oklab(33.36% 0.005 -0.1389) |
| OKLCH | oklch(33.36% 0.139 272.1) |
| XYZ | xyz(5.0570, 3.3639, 19.4477) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.51
Royal
#0C1793
ΔE00 6.18
Darkslateblue
#483D8B
ΔE00 7.51
Marine
#042E60
ΔE00 7.54
Sapphire (survey)
#2138AB
ΔE00 7.63
Blueberry
#464196
ΔE00 8.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21297C #7C7421
analogous
#21567C #21297C #46217C
triadic
#21297C #7C2129 #297C21
tetradic
#21297C #7C2156 #7C7421 #217C46
square
#21297C #7C2156 #7C7421 #217C46
split-complementary
#21297C #7C4621 #567C21
monochromatic
#07091B #14194C #21297C #2E39AC #4955CF
Accessibility & contrast
On white
12.55
#21297C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#21297C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21297C
12.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21297C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21297C | 1.00 | 12.55 | 1.67 | 12.55 |
| #FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #21297c; /* rgb */ color: rgb(33, 41, 124); /* oklch */ color: oklch(33.4% 0.139 272.1);
Tailwind
colors: {
custom: {
50: '#6a63a3',
500: '#21297c',
950: '#000000',
},
}SCSS
$custom: #21297c; $custom-light: #6a63a3; $custom-dark: #000000;
JSON
{
"hex": "#21297c",
"rgb": {
"r": 33,
"g": 41,
"b": 124
},
"hsl": {
"h": 234.725,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.33355,
"c": 0.13895,
"h": 272.1
},
"luminance": 0.03364
}Semantic roles & 50–950 ramp
primary
#21297C
secondary
#AFA64A
accent
#D447E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F