#212D7F#212D7F
#212D7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.138 H 270.8°. Best body text is #FFFFFF at 12.02:1 contrast (WCAG AA passes).
Color values
| HEX | #212D7F |
|---|---|
| RGB | rgb(33, 45, 127) |
| HSL | hsl(232, 59%, 31%) |
| HSV | hsv(232, 74%, 50%) |
| CMYK | cmyk(74%, 64.6%, 0%, 50.2%) |
| CIE-LAB | lab(22.76, 25.07, -47.81) |
| CIE-LCH | lch(22.76, 53.99, 297.67°) |
| OKLab | oklab(34.41% 0.0018 -0.1381) |
| OKLCH | oklch(34.41% 0.138 270.8) |
| XYZ | xyz(5.3950, 3.7319, 20.5106) |
| Luminance | 0.0373 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.76
Sapphire (survey)
#2138AB
ΔE00 6.82
Royal
#0C1793
ΔE00 6.92
Darkslateblue
#483D8B
ΔE00 6.95
Marine
#042E60
ΔE00 7.04
Blueberry
#464196
ΔE00 7.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212D7F #7F7321
analogous
#215C7F #212D7F #44217F
triadic
#212D7F #7F212D #2D7F21
tetradic
#212D7F #7F215C #7F7321 #217F44
square
#212D7F #7F215C #7F7321 #217F44
split-complementary
#212D7F #7F4421 #5C7F21
monochromatic
#080B1E #141C4E #212D7F #2E3EB0 #4A5BD0
Accessibility & contrast
On white
12.02
#212D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#212D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212D7F
12.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212D7F | 1.00 | 12.02 | 1.75 | 12.02 |
| #FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #212d7f; /* rgb */ color: rgb(33, 45, 127); /* oklch */ color: oklch(34.4% 0.138 270.8);
Tailwind
colors: {
custom: {
50: '#6b65a5',
500: '#212d7f',
950: '#000000',
},
}SCSS
$custom: #212d7f; $custom-light: #6b65a5; $custom-dark: #000000;
JSON
{
"hex": "#212d7f",
"rgb": {
"r": 33,
"g": 45,
"b": 127
},
"hsl": {
"h": 232.34,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.34409,
"c": 0.13809,
"h": 270.8
},
"luminance": 0.03732
}Semantic roles & 50–950 ramp
primary
#212D7F
secondary
#B2A44A
accent
#CE46E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F