#212C7F#212C7F
#212C7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.139 H 271.1°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #212C7F |
|---|---|
| RGB | rgb(33, 44, 127) |
| HSL | hsl(233, 59%, 31%) |
| HSV | hsv(233, 74%, 50%) |
| CMYK | cmyk(74%, 65.4%, 0%, 50.2%) |
| CIE-LAB | lab(22.50, 25.75, -48.24) |
| CIE-LCH | lch(22.50, 54.69, 298.09°) |
| OKLab | oklab(34.22% 0.0026 -0.1393) |
| OKLCH | oklch(34.22% 0.139 271.1) |
| XYZ | xyz(5.3573, 3.6565, 20.4980) |
| Luminance | 0.0366 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.45
Royal
#0C1793
ΔE00 6.63
Sapphire (survey)
#2138AB
ΔE00 6.91
Darkslateblue
#483D8B
ΔE00 7.05
Marine
#042E60
ΔE00 7.24
Blueberry
#464196
ΔE00 7.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212C7F #7F7421
analogous
#215B7F #212C7F #45217F
triadic
#212C7F #7F212C #2C7F21
tetradic
#212C7F #7F215B #7F7421 #217F45
square
#212C7F #7F215B #7F7421 #217F45
split-complementary
#212C7F #7F4521 #5B7F21
monochromatic
#080A1E #141B4E #212C7F #2E3DB0 #4A5AD0
Accessibility & contrast
On white
12.13
#212C7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#212C7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212C7F
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212C7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212C7F | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #212c7f; /* rgb */ color: rgb(33, 44, 127); /* oklch */ color: oklch(34.2% 0.139 271.1);
Tailwind
colors: {
custom: {
50: '#6b65a5',
500: '#212c7f',
950: '#000000',
},
}SCSS
$custom: #212c7f; $custom-light: #6b65a5; $custom-dark: #000000;
JSON
{
"hex": "#212c7f",
"rgb": {
"r": 33,
"g": 44,
"b": 127
},
"hsl": {
"h": 232.979,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.34215,
"c": 0.13937,
"h": 271.1
},
"luminance": 0.03657
}Semantic roles & 50–950 ramp
primary
#212C7F
secondary
#B2A64A
accent
#D046E2
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#08050F
muted
#7A7A7F