#212D7C#212D7C
#212D7C is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.1% C 0.134 H 270.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #212D7C |
|---|---|
| RGB | rgb(33, 45, 124) |
| HSL | hsl(232, 58%, 31%) |
| HSV | hsv(232, 73%, 49%) |
| CMYK | cmyk(73.4%, 63.7%, 0%, 51.4%) |
| CIE-LAB | lab(22.50, 23.91, -46.35) |
| CIE-LCH | lch(22.50, 52.16, 297.29°) |
| OKLab | oklab(34.13% 0.0019 -0.1338) |
| OKLCH | oklch(34.13% 0.134 270.8) |
| XYZ | xyz(5.2024, 3.6548, 19.4962) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 5.74
Marine
#042E60
ΔE00 6.67
Darkslateblue
#483D8B
ΔE00 7.05
Sapphire (survey)
#2138AB
ΔE00 7.26
Royal
#0C1793
ΔE00 7.28
Blueberry
#464196
ΔE00 7.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212D7C #7C7021
analogous
#215A7C #212D7C #42217C
triadic
#212D7C #7C212D #2D7C21
tetradic
#212D7C #7C215A #7C7021 #217C42
square
#212D7C #7C215A #7C7021 #217C42
split-complementary
#212D7C #7C4221 #5A7C21
monochromatic
#070A1B #141B4C #212D7C #2E3FAC #495ACF
Accessibility & contrast
On white
12.13
#212D7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#212D7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212D7C
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212D7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212D7C | 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)
#003A7F
Deuteranopia (green-blind)
#00327A
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #212d7c; /* rgb */ color: rgb(33, 45, 124); /* oklch */ color: oklch(34.1% 0.134 270.8);
Tailwind
colors: {
custom: {
50: '#6a65a3',
500: '#212d7c',
950: '#000000',
},
}SCSS
$custom: #212d7c; $custom-light: #6a65a3; $custom-dark: #000000;
JSON
{
"hex": "#212d7c",
"rgb": {
"r": 33,
"g": 45,
"b": 124
},
"hsl": {
"h": 232.088,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.34127,
"c": 0.13381,
"h": 270.8
},
"luminance": 0.03655
}Semantic roles & 50–950 ramp
primary
#212D7C
secondary
#AFA24A
accent
#CD47E1
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F