#311E84#311E84
#311E84 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.159 H 282.2°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).
Color values
| HEX | #311E84 |
|---|---|
| RGB | rgb(49, 30, 132) |
| HSL | hsl(251, 63%, 32%) |
| HSV | hsv(251, 77%, 52%) |
| CMYK | cmyk(62.9%, 77.3%, 0%, 48.2%) |
| CIE-LAB | lab(21.01, 38.40, -53.80) |
| CIE-LCH | lch(21.01, 66.10, 305.51°) |
| OKLab | oklab(33.6% 0.0335 -0.1551) |
| OKLCH | oklch(33.6% 0.159 282.2) |
| XYZ | xyz(5.8945, 3.2470, 22.1414) |
| Luminance | 0.0325 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.98
Midnight Blue
#191970
ΔE00 4.27
Indigo (survey)
#380282
ΔE00 4.56
Darkblue
#00008B
ΔE00 5.99
Indigo
#4B0082
ΔE00 6.12
Cobalt Blue
#030AA7
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311E84 #71841E
analogous
#1E3E84 #311E84 #641E84
triadic
#311E84 #84311E #1E8431
tetradic
#311E84 #841E3E #71841E #1E8464
square
#311E84 #841E3E #71841E #1E8464
split-complementary
#311E84 #84641E #3E841E
monochromatic
#0C0720 #1E1352 #311E84 #4429B6 #6247D5
Accessibility & contrast
On white
12.73
#311E84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#311E84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311E84
12.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311E84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311E84 | 1.00 | 12.73 | 1.65 | 12.73 |
| #FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002F82
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #311e84; /* rgb */ color: rgb(49, 30, 132); /* oklch */ color: oklch(33.6% 0.159 282.2);
Tailwind
colors: {
custom: {
50: '#745ca9',
500: '#311e84',
950: '#000000',
},
}SCSS
$custom: #311e84; $custom-light: #745ca9; $custom-dark: #000000;
JSON
{
"hex": "#311e84",
"rgb": {
"r": 49,
"g": 30,
"b": 132
},
"hsl": {
"h": 251.176,
"s": 62.963,
"l": 31.765
},
"oklch": {
"l": 0.33599,
"c": 0.15873,
"h": 282.2
},
"luminance": 0.03247
}Semantic roles & 50–950 ramp
primary
#311E84
secondary
#A2B747
accent
#E642C7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F