#212281#212281
#212281 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.6% C 0.154 H 273.4°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).
Color values
| HEX | #212281 |
|---|---|
| RGB | rgb(33, 34, 129) |
| HSL | hsl(239, 59%, 32%) |
| HSV | hsv(239, 74%, 51%) |
| CMYK | cmyk(74.4%, 73.6%, 0%, 49.4%) |
| CIE-LAB | lab(20.25, 33.08, -53.20) |
| CIE-LCH | lch(20.25, 62.65, 301.87°) |
| OKLab | oklab(32.64% 0.0091 -0.1539) |
| OKLCH | oklch(32.64% 0.154 273.4) |
| XYZ | xyz(5.1603, 3.0519, 21.0817) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.25
Royal
#0C1793
ΔE00 3.93
Dark Royal Blue
#02066F
ΔE00 6.54
Darkblue
#00008B
ΔE00 6.60
Navy
#000080
ΔE00 6.74
Indigo (survey)
#380282
ΔE00 6.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#212281 #818021
analogous
#215281 #212281 #502181
triadic
#212281 #812122 #228121
tetradic
#212281 #812152 #818021 #218150
square
#212281 #812152 #818021 #218150
split-complementary
#212281 #815021 #528121
monochromatic
#080820 #151550 #212281 #2D2FB2 #4B4DD1
Accessibility & contrast
On white
13.04
#212281 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#212281 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #212281
13.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##212281 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##212281 | 1.00 | 13.04 | 1.61 | 13.04 |
| #FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#002C7F
Tritanopia (blue-blind)
#003D4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #212281; /* rgb */ color: rgb(33, 34, 129); /* oklch */ color: oklch(32.6% 0.154 273.4);
Tailwind
colors: {
custom: {
50: '#6c5ea7',
500: '#212281',
950: '#000000',
},
}SCSS
$custom: #212281; $custom-light: #6c5ea7; $custom-dark: #000000;
JSON
{
"hex": "#212281",
"rgb": {
"r": 33,
"g": 34,
"b": 129
},
"hsl": {
"h": 239.375,
"s": 59.259,
"l": 31.765
},
"oklch": {
"l": 0.32641,
"c": 0.15415,
"h": 273.4
},
"luminance": 0.03052
}Semantic roles & 50–950 ramp
primary
#212281
secondary
#B4B24A
accent
#E145E2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F