#311E85#311E85
#311E85 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.160 H 282.0°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).
Color values
| HEX | #311E85 |
|---|---|
| RGB | rgb(49, 30, 133) |
| HSL | hsl(251, 63%, 32%) |
| HSV | hsv(251, 77%, 52%) |
| CMYK | cmyk(63.2%, 77.4%, 0%, 47.8%) |
| CIE-LAB | lab(21.11, 38.72, -54.26) |
| CIE-LCH | lch(21.11, 66.66, 305.51°) |
| OKLab | oklab(33.7% 0.0333 -0.1565) |
| OKLCH | oklch(33.7% 0.16 282) |
| XYZ | xyz(5.9632, 3.2745, 22.5036) |
| Luminance | 0.0328 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.88
Midnight Blue
#191970
ΔE00 4.37
Indigo (survey)
#380282
ΔE00 4.55
Darkblue
#00008B
ΔE00 5.95
Cobalt Blue
#030AA7
ΔE00 6.06
Indigo
#4B0082
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311E85 #72851E
analogous
#1E3F85 #311E85 #651E85
triadic
#311E85 #85311E #1E8531
tetradic
#311E85 #851E3F #72851E #1E8565
square
#311E85 #851E3F #72851E #1E8565
split-complementary
#311E85 #85651E #3F851E
monochromatic
#0C0721 #1F1353 #311E85 #4329B7 #6248D6
Accessibility & contrast
On white
12.69
#311E85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#311E85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311E85
12.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311E85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311E85 | 1.00 | 12.69 | 1.66 | 12.69 |
| #FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #311e85; /* rgb */ color: rgb(49, 30, 133); /* oklch */ color: oklch(33.7% 0.160 282.0);
Tailwind
colors: {
custom: {
50: '#755daa',
500: '#311e85',
950: '#000000',
},
}SCSS
$custom: #311e85; $custom-light: #755daa; $custom-dark: #000000;
JSON
{
"hex": "#311e85",
"rgb": {
"r": 49,
"g": 30,
"b": 133
},
"hsl": {
"h": 251.068,
"s": 63.19,
"l": 31.961
},
"oklch": {
"l": 0.33704,
"c": 0.15999,
"h": 282
},
"luminance": 0.03275
}Semantic roles & 50–950 ramp
primary
#311E85
secondary
#A3B847
accent
#E642C8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F