#212C7B#212C7B
#212C7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.134 H 271.2°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).
Color values
| HEX | #212C7B |
|---|---|
| RGB | rgb(33, 44, 123) |
| HSL | hsl(233, 58%, 31%) |
| HSV | hsv(233, 73%, 48%) |
| CMYK | cmyk(73.2%, 64.2%, 0%, 51.8%) |
| CIE-LAB | lab(22.14, 24.22, -46.30) |
| CIE-LCH | lch(22.14, 52.25, 297.61°) |
| OKLab | oklab(33.84% 0.0028 -0.1336) |
| OKLCH | oklch(33.84% 0.134 271.2) |
| XYZ | xyz(5.1018, 3.5543, 19.1522) |
| Luminance | 0.0355 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.43
Marine
#042E60
ΔE00 6.76
Royal
#0C1793
ΔE00 7.13
Darkslateblue
#483D8B
ΔE00 7.19
Sapphire (survey)
#2138AB
ΔE00 7.48
Blueberry
#464196
ΔE00 7.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212C7B #7B7021
analogous
#21597B #212C7B #43217B
triadic
#212C7B #7B212C #2C7B21
tetradic
#212C7B #7B2159 #7B7021 #217B43
square
#212C7B #7B2159 #7B7021 #217B43
split-complementary
#212C7B #7B4321 #597B21
monochromatic
#07091A #141B4B #212C7B #2E3DAB #4859CE
Accessibility & contrast
On white
12.27
#212C7B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#212C7B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212C7B
12.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212C7B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212C7B | 1.00 | 12.27 | 1.71 | 12.27 |
| #FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003179
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #212c7b; /* rgb */ color: rgb(33, 44, 123); /* oklch */ color: oklch(33.8% 0.134 271.2);
Tailwind
colors: {
custom: {
50: '#6a65a2',
500: '#212c7b',
950: '#000000',
},
}SCSS
$custom: #212c7b; $custom-light: #6a65a2; $custom-dark: #000000;
JSON
{
"hex": "#212c7b",
"rgb": {
"r": 33,
"g": 44,
"b": 123
},
"hsl": {
"h": 232.667,
"s": 57.692,
"l": 30.588
},
"oklch": {
"l": 0.33836,
"c": 0.13368,
"h": 271.2
},
"luminance": 0.03555
}Semantic roles & 50–950 ramp
primary
#212C7B
secondary
#AEA24A
accent
#CE47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F