#311886#311886
#311886 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.167 H 282.8°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).
Color values
| HEX | #311886 |
|---|---|
| RGB | rgb(49, 24, 134) |
| HSL | hsl(254, 70%, 31%) |
| HSV | hsv(254, 82%, 53%) |
| CMYK | cmyk(63.4%, 82.1%, 0%, 47.5%) |
| CIE-LAB | lab(20.15, 42.09, -56.47) |
| CIE-LCH | lch(20.15, 70.43, 306.70°) |
| OKLab | oklab(33.07% 0.0369 -0.1629) |
| OKLCH | oklch(33.07% 0.167 282.8) |
| XYZ | xyz(5.8950, 3.0271, 22.8233) |
| Luminance | 0.0303 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.32
Royal
#0C1793
ΔE00 3.59
Midnight Blue
#191970
ΔE00 4.66
Darkblue
#00008B
ΔE00 4.96
Indigo
#4B0082
ΔE00 5.25
Navy
#000080
ΔE00 5.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311886 #6D8618
analogous
#183686 #311886 #681886
triadic
#311886 #863118 #188631
tetradic
#311886 #861836 #6D8618 #188668
square
#311886 #861836 #6D8618 #188668
split-complementary
#311886 #866818 #368618
monochromatic
#0B051E #1E0F52 #311886 #4421BA #613CDC
Accessibility & contrast
On white
13.08
#311886 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#311886 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311886
13.08:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311886 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311886 | 1.00 | 13.08 | 1.61 | 13.08 |
| #FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.08 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #311886; /* rgb */ color: rgb(49, 24, 134); /* oklch */ color: oklch(33.1% 0.167 282.8);
Tailwind
colors: {
custom: {
50: '#7559aa',
500: '#311886',
950: '#000000',
},
}SCSS
$custom: #311886; $custom-light: #7559aa; $custom-dark: #000000;
JSON
{
"hex": "#311886",
"rgb": {
"r": 49,
"g": 24,
"b": 134
},
"hsl": {
"h": 253.636,
"s": 69.62,
"l": 30.98
},
"oklch": {
"l": 0.33066,
"c": 0.167,
"h": 282.8
},
"luminance": 0.03027
}Semantic roles & 50–950 ramp
primary
#311886
secondary
#9EBA40
accent
#EC3BC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F