#212A7C#212A7C
#212A7C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.138 H 271.8°. Best body text is #FFFFFF at 12.45:1 contrast (WCAG AA passes).
Color values
| HEX | #212A7C |
|---|---|
| RGB | rgb(33, 42, 124) |
| HSL | hsl(234, 58%, 31%) |
| HSV | hsv(234, 73%, 49%) |
| CMYK | cmyk(73.4%, 66.1%, 0%, 51.4%) |
| CIE-LAB | lab(21.70, 25.97, -47.65) |
| CIE-LCH | lch(21.70, 54.27, 298.59°) |
| OKLab | oklab(33.54% 0.0043 -0.1376) |
| OKLCH | oklch(33.54% 0.138 271.8) |
| XYZ | xyz(5.0920, 3.4340, 19.4593) |
| Luminance | 0.0343 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 4.80
Royal
#0C1793
ΔE00 6.45
Marine
#042E60
ΔE00 7.31
Darkslateblue
#483D8B
ΔE00 7.38
Sapphire (survey)
#2138AB
ΔE00 7.53
Blueberry
#464196
ΔE00 8.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212A7C #7C7321
analogous
#21577C #212A7C #45217C
triadic
#212A7C #7C212A #2A7C21
tetradic
#212A7C #7C2157 #7C7321 #217C45
square
#212A7C #7C2157 #7C7321 #217C45
split-complementary
#212A7C #7C4521 #577C21
monochromatic
#07091B #141A4C #212A7C #2E3AAC #4956CF
Accessibility & contrast
On white
12.45
#212A7C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#212A7C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212A7C
12.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212A7C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212A7C | 1.00 | 12.45 | 1.69 | 12.45 |
| #FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.45 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #212a7c; /* rgb */ color: rgb(33, 42, 124); /* oklch */ color: oklch(33.5% 0.138 271.8);
Tailwind
colors: {
custom: {
50: '#6a63a3',
500: '#212a7c',
950: '#000000',
},
}SCSS
$custom: #212a7c; $custom-light: #6a63a3; $custom-dark: #000000;
JSON
{
"hex": "#212a7c",
"rgb": {
"r": 33,
"g": 42,
"b": 124
},
"hsl": {
"h": 234.066,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.33544,
"c": 0.13769,
"h": 271.8
},
"luminance": 0.03434
}Semantic roles & 50–950 ramp
primary
#212A7C
secondary
#AFA54A
accent
#D247E1
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F