#212A7F#212A7F
#212A7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.142 H 271.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).
Color values
| HEX | #212A7F |
|---|---|
| RGB | rgb(33, 42, 127) |
| HSL | hsl(234, 59%, 31%) |
| HSV | hsv(234, 74%, 50%) |
| CMYK | cmyk(74%, 66.9%, 0%, 50.2%) |
| CIE-LAB | lab(21.98, 27.11, -49.09) |
| CIE-LCH | lch(21.98, 56.08, 298.91°) |
| OKLab | oklab(33.84% 0.0041 -0.1418) |
| OKLCH | oklch(33.84% 0.142 271.6) |
| XYZ | xyz(5.2846, 3.5110, 20.4737) |
| Luminance | 0.0351 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.87
Royal
#0C1793
ΔE00 6.07
Sapphire (survey)
#2138AB
ΔE00 7.12
Darkslateblue
#483D8B
ΔE00 7.30
Marine
#042E60
ΔE00 7.66
Blueberry
#464196
ΔE00 7.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212A7F #7F7621
analogous
#21597F #212A7F #47217F
triadic
#212A7F #7F212A #2A7F21
tetradic
#212A7F #7F2159 #7F7621 #217F47
square
#212A7F #7F2159 #7F7621 #217F47
split-complementary
#212A7F #7F4721 #597F21
monochromatic
#080A1E #141A4E #212A7F #2E3AB0 #4A57D0
Accessibility & contrast
On white
12.34
#212A7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#212A7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212A7F
12.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212A7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212A7F | 1.00 | 12.34 | 1.70 | 12.34 |
| #FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #212a7f; /* rgb */ color: rgb(33, 42, 127); /* oklch */ color: oklch(33.8% 0.142 271.6);
Tailwind
colors: {
custom: {
50: '#6b63a5',
500: '#212a7f',
950: '#000000',
},
}SCSS
$custom: #212a7f; $custom-light: #6b63a5; $custom-dark: #000000;
JSON
{
"hex": "#212a7f",
"rgb": {
"r": 33,
"g": 42,
"b": 127
},
"hsl": {
"h": 234.255,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.33836,
"c": 0.1419,
"h": 271.6
},
"luminance": 0.03512
}Semantic roles & 50–950 ramp
primary
#212A7F
secondary
#B2A84A
accent
#D346E2
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F