#21297F#21297F
#21297F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.7% C 0.143 H 271.9°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).
Color values
| HEX | #21297F |
|---|---|
| RGB | rgb(33, 41, 127) |
| HSL | hsl(235, 59%, 31%) |
| HSV | hsv(235, 74%, 50%) |
| CMYK | cmyk(74%, 67.7%, 0%, 50.2%) |
| CIE-LAB | lab(21.73, 27.79, -49.51) |
| CIE-LCH | lch(21.73, 56.77, 299.30°) |
| OKLab | oklab(33.65% 0.0048 -0.1431) |
| OKLCH | oklch(33.65% 0.143 271.9) |
| XYZ | xyz(5.2496, 3.4410, 20.4621) |
| Luminance | 0.0344 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.59
Royal
#0C1793
ΔE00 5.80
Sapphire (survey)
#2138AB
ΔE00 7.24
Darkslateblue
#483D8B
ΔE00 7.44
Marine
#042E60
ΔE00 7.87
Blueberry
#464196
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#21297F #7F7721
analogous
#21587F #21297F #48217F
triadic
#21297F #7F2129 #297F21
tetradic
#21297F #7F2158 #7F7721 #217F48
square
#21297F #7F2158 #7F7721 #217F48
split-complementary
#21297F #7F4821 #587F21
monochromatic
#080A1E #14194E #21297F #2E39B0 #4A56D0
Accessibility & contrast
On white
12.44
#21297F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#21297F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #21297F
12.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##21297F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##21297F | 1.00 | 12.44 | 1.69 | 12.44 |
| #FFFFFF | 12.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #21297f; /* rgb */ color: rgb(33, 41, 127); /* oklch */ color: oklch(33.7% 0.143 271.9);
Tailwind
colors: {
custom: {
50: '#6b63a5',
500: '#21297f',
950: '#000000',
},
}SCSS
$custom: #21297f; $custom-light: #6b63a5; $custom-dark: #000000;
JSON
{
"hex": "#21297f",
"rgb": {
"r": 33,
"g": 41,
"b": 127
},
"hsl": {
"h": 234.894,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.3365,
"c": 0.14315,
"h": 271.9
},
"luminance": 0.03442
}Semantic roles & 50–950 ramp
primary
#21297F
secondary
#B2A94A
accent
#D546E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F