#212382#212382
#212382 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.9% C 0.154 H 273.1°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).
Color values
| HEX | #212382 |
|---|---|
| RGB | rgb(33, 35, 130) |
| HSL | hsl(239, 60%, 32%) |
| HSV | hsv(239, 75%, 51%) |
| CMYK | cmyk(74.6%, 73.1%, 0%, 49%) |
| CIE-LAB | lab(20.58, 32.81, -53.29) |
| CIE-LCH | lch(20.58, 62.58, 301.62°) |
| OKLab | oklab(32.91% 0.0083 -0.1541) |
| OKLCH | oklch(32.91% 0.154 273.1) |
| XYZ | xyz(5.2561, 3.1366, 21.4432) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.50
Royal
#0C1793
ΔE00 4.01
Darkblue
#00008B
ΔE00 6.80
Dark Royal Blue
#02066F
ΔE00 6.81
Cobalt Blue
#030AA7
ΔE00 6.90
Navy
#000080
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212382 #828021
analogous
#215482 #212382 #502182
triadic
#212382 #822123 #238221
tetradic
#212382 #822154 #828021 #218250
square
#212382 #822154 #828021 #218250
split-complementary
#212382 #825021 #548221
monochromatic
#080920 #151651 #212382 #2D30B3 #4C4FD2
Accessibility & contrast
On white
12.90
#212382 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#212382 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212382
12.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212382 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212382 | 1.00 | 12.90 | 1.63 | 12.90 |
| #FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#002D80
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #212382; /* rgb */ color: rgb(33, 35, 130); /* oklch */ color: oklch(32.9% 0.154 273.1);
Tailwind
colors: {
custom: {
50: '#6c5fa7',
500: '#212382',
950: '#000000',
},
}SCSS
$custom: #212382; $custom-light: #6c5fa7; $custom-dark: #000000;
JSON
{
"hex": "#212382",
"rgb": {
"r": 33,
"g": 35,
"b": 130
},
"hsl": {
"h": 238.763,
"s": 59.509,
"l": 31.961
},
"oklch": {
"l": 0.3291,
"c": 0.15435,
"h": 273.1
},
"luminance": 0.03137
}Semantic roles & 50–950 ramp
primary
#212382
secondary
#B4B24A
accent
#DF45E3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F