#212A79#212A79
#212A79 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.133 H 271.9°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).
Color values
| HEX | #212A79 |
|---|---|
| RGB | rgb(33, 42, 121) |
| HSL | hsl(234, 57%, 30%) |
| HSV | hsv(234, 73%, 47%) |
| CMYK | cmyk(72.7%, 65.3%, 0%, 52.5%) |
| CIE-LAB | lab(21.43, 24.82, -46.19) |
| CIE-LCH | lch(21.43, 52.44, 298.25°) |
| OKLab | oklab(33.26% 0.0044 -0.1333) |
| OKLCH | oklch(33.26% 0.133 271.9) |
| XYZ | xyz(4.9052, 3.3593, 18.4753) |
| Luminance | 0.0336 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.80
Royal
#0C1793
ΔE00 6.85
Marine
#042E60
ΔE00 6.97
Darkslateblue
#483D8B
ΔE00 7.49
Sapphire (survey)
#2138AB
ΔE00 7.94
Blueberry
#464196
ΔE00 8.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212A79 #797021
analogous
#215679 #212A79 #442179
triadic
#212A79 #79212A #2A7921
tetradic
#212A79 #792156 #797021 #217944
square
#212A79 #792156 #797021 #217944
split-complementary
#212A79 #794421 #567921
monochromatic
#070919 #141949 #212A79 #2E3BA9 #4755CD
Accessibility & contrast
On white
12.56
#212A79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#212A79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212A79
12.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212A79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212A79 | 1.00 | 12.56 | 1.67 | 12.56 |
| #FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#002F77
Tritanopia (blue-blind)
#003E4D
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #212a79; /* rgb */ color: rgb(33, 42, 121); /* oklch */ color: oklch(33.3% 0.133 271.9);
Tailwind
colors: {
custom: {
50: '#6a63a0',
500: '#212a79',
950: '#000000',
},
}SCSS
$custom: #212a79; $custom-light: #6a63a0; $custom-dark: #000000;
JSON
{
"hex": "#212a79",
"rgb": {
"r": 33,
"g": 42,
"b": 121
},
"hsl": {
"h": 233.864,
"s": 57.143,
"l": 30.196
},
"oklch": {
"l": 0.33257,
"c": 0.13342,
"h": 271.9
},
"luminance": 0.0336
}Semantic roles & 50–950 ramp
primary
#212A79
secondary
#ACA24A
accent
#D147E0
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F