#212279#212279
#212279 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.143 H 274.1°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #212279 |
|---|---|
| RGB | rgb(33, 34, 121) |
| HSL | hsl(239, 57%, 30%) |
| HSV | hsv(239, 73%, 47%) |
| CMYK | cmyk(72.7%, 71.9%, 0%, 52.5%) |
| CIE-LAB | lab(19.42, 30.18, -49.48) |
| CIE-LCH | lch(19.42, 57.96, 301.38°) |
| OKLab | oklab(31.8% 0.0103 -0.143) |
| OKLCH | oklch(31.8% 0.143 274.1) |
| XYZ | xyz(4.6493, 2.8474, 18.3900) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 2.55
Royal
#0C1793
ΔE00 5.04
Dark Royal Blue
#02066F
ΔE00 6.43
Darkblue (survey)
#030764
ΔE00 6.80
Deep Blue
#040273
ΔE00 6.95
Navy
#000080
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212279 #797821
analogous
#214E79 #212279 #4C2179
triadic
#212279 #792122 #227921
tetradic
#212279 #79214E #797821 #21794C
square
#212279 #79214E #797821 #21794C
split-complementary
#212279 #794C21 #4E7921
monochromatic
#070719 #141449 #212279 #2E30A9 #4749CD
Accessibility & contrast
On white
13.38
#212279 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#212279 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212279
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212279 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212279 | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002B77
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #212279; /* rgb */ color: rgb(33, 34, 121); /* oklch */ color: oklch(31.8% 0.143 274.1);
Tailwind
colors: {
custom: {
50: '#6a5ea1',
500: '#212279',
950: '#000000',
},
}SCSS
$custom: #212279; $custom-light: #6a5ea1; $custom-dark: #000000;
JSON
{
"hex": "#212279",
"rgb": {
"r": 33,
"g": 34,
"b": 121
},
"hsl": {
"h": 239.318,
"s": 57.143,
"l": 30.196
},
"oklch": {
"l": 0.31795,
"c": 0.14338,
"h": 274.1
},
"luminance": 0.02848
}Semantic roles & 50–950 ramp
primary
#212279
secondary
#ACAB4A
accent
#DF47E0
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07040F
muted
#7A797F