#21297B#21297B
#21297B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.3% C 0.138 H 272.1°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).
Color values
| HEX | #21297B |
|---|---|
| RGB | rgb(33, 41, 123) |
| HSL | hsl(235, 58%, 31%) |
| HSV | hsv(235, 73%, 48%) |
| CMYK | cmyk(73.2%, 66.7%, 0%, 51.8%) |
| CIE-LAB | lab(21.35, 26.27, -47.59) |
| CIE-LCH | lch(21.35, 54.36, 298.90°) |
| OKLab | oklab(33.26% 0.0051 -0.1374) |
| OKLCH | oklch(33.26% 0.138 272.1) |
| XYZ | xyz(4.9941, 3.3388, 19.1163) |
| Luminance | 0.0334 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.49
Royal
#0C1793
ΔE00 6.31
Marine
#042E60
ΔE00 7.43
Darkslateblue
#483D8B
ΔE00 7.54
Sapphire (survey)
#2138AB
ΔE00 7.77
Blueberry
#464196
ΔE00 8.32
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21297B #7B7321
analogous
#21567B #21297B #46217B
triadic
#21297B #7B2129 #297B21
tetradic
#21297B #7B2156 #7B7321 #217B46
square
#21297B #7B2156 #7B7321 #217B46
split-complementary
#21297B #7B4621 #567B21
monochromatic
#07091A #14194B #21297B #2E39AB #4854CE
Accessibility & contrast
On white
12.59
#21297B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#21297B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21297B
12.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21297B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21297B | 1.00 | 12.59 | 1.67 | 12.59 |
| #FFFFFF | 12.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #21297b; /* rgb */ color: rgb(33, 41, 123); /* oklch */ color: oklch(33.3% 0.138 272.1);
Tailwind
colors: {
custom: {
50: '#6a62a2',
500: '#21297b',
950: '#000000',
},
}SCSS
$custom: #21297b; $custom-light: #6a62a2; $custom-dark: #000000;
JSON
{
"hex": "#21297b",
"rgb": {
"r": 33,
"g": 41,
"b": 123
},
"hsl": {
"h": 234.667,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.33258,
"c": 0.13754,
"h": 272.1
},
"luminance": 0.03339
}Semantic roles & 50–950 ramp
primary
#21297B
secondary
#AEA54A
accent
#D347E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F