#212E7E#212E7E
#212E7E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.5% C 0.135 H 270.5°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).
Color values
| HEX | #212E7E |
|---|---|
| RGB | rgb(33, 46, 126) |
| HSL | hsl(232, 58%, 31%) |
| HSV | hsv(232, 74%, 49%) |
| CMYK | cmyk(73.8%, 63.5%, 0%, 50.6%) |
| CIE-LAB | lab(22.94, 24.00, -46.89) |
| CIE-LCH | lch(22.94, 52.68, 297.10°) |
| OKLab | oklab(34.51% 0.0011 -0.1354) |
| OKLCH | oklch(34.51% 0.135 270.5) |
| XYZ | xyz(5.3688, 3.7831, 20.1819) |
| Luminance | 0.0378 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 6.06
Marine
#042E60
ΔE00 6.73
Darkslateblue
#483D8B
ΔE00 6.89
Sapphire (survey)
#2138AB
ΔE00 6.90
Royal
#0C1793
ΔE00 7.33
Blueberry
#464196
ΔE00 7.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212E7E #7E7121
analogous
#215C7E #212E7E #42217E
triadic
#212E7E #7E212E #2E7E21
tetradic
#212E7E #7E215C #7E7121 #217E42
square
#212E7E #7E215C #7E7121 #217E42
split-complementary
#212E7E #7E4221 #5C7E21
monochromatic
#080B1D #141C4E #212E7E #2E40AE #4A5DD0
Accessibility & contrast
On white
11.95
#212E7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#212E7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212E7E
11.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212E7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212E7E | 1.00 | 11.95 | 1.76 | 11.95 |
| #FFFFFF | 11.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00337C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #212e7e; /* rgb */ color: rgb(33, 46, 126); /* oklch */ color: oklch(34.5% 0.135 270.5);
Tailwind
colors: {
custom: {
50: '#6a66a4',
500: '#212e7e',
950: '#000000',
},
}SCSS
$custom: #212e7e; $custom-light: #6a66a4; $custom-dark: #000000;
JSON
{
"hex": "#212e7e",
"rgb": {
"r": 33,
"g": 46,
"b": 126
},
"hsl": {
"h": 231.613,
"s": 58.491,
"l": 31.176
},
"oklch": {
"l": 0.34511,
"c": 0.13537,
"h": 270.5
},
"luminance": 0.03784
}Semantic roles & 50–950 ramp
primary
#212E7E
secondary
#B1A24A
accent
#CC46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F