#311785#311785
#311785 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.167 H 283.1°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).
Color values
| HEX | #311785 |
|---|---|
| RGB | rgb(49, 23, 133) |
| HSL | hsl(254, 71%, 31%) |
| HSV | hsv(254, 83%, 52%) |
| CMYK | cmyk(63.2%, 82.7%, 0%, 47.8%) |
| CIE-LAB | lab(19.88, 42.26, -56.30) |
| CIE-LCH | lch(19.88, 70.39, 306.90°) |
| OKLab | oklab(32.84% 0.0378 -0.1623) |
| OKLCH | oklch(32.84% 0.167 283.1) |
| XYZ | xyz(5.8053, 2.9588, 22.4509) |
| Luminance | 0.0296 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.12
Royal
#0C1793
ΔE00 3.69
Midnight Blue
#191970
ΔE00 4.62
Darkblue
#00008B
ΔE00 4.86
Indigo
#4B0082
ΔE00 5.11
Navy
#000080
ΔE00 5.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#311785 #6B8517
analogous
#173485 #311785 #681785
triadic
#311785 #853117 #178531
tetradic
#311785 #851734 #6B8517 #178568
square
#311785 #851734 #6B8517 #178568
split-complementary
#311785 #856817 #348517
monochromatic
#0B051D #1E0E51 #311785 #4420B9 #603ADD
Accessibility & contrast
On white
13.19
#311785 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.59
#311785 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #311785
13.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##311785 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##311785 | 1.00 | 13.19 | 1.59 | 13.19 |
| #FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.59 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002C83
Tritanopia (blue-blind)
#00384F
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #311785; /* rgb */ color: rgb(49, 23, 133); /* oklch */ color: oklch(32.8% 0.167 283.1);
Tailwind
colors: {
custom: {
50: '#7559aa',
500: '#311785',
950: '#000000',
},
}SCSS
$custom: #311785; $custom-light: #7559aa; $custom-dark: #000000;
JSON
{
"hex": "#311785",
"rgb": {
"r": 49,
"g": 23,
"b": 133
},
"hsl": {
"h": 254.182,
"s": 70.513,
"l": 30.588
},
"oklch": {
"l": 0.32843,
"c": 0.16669,
"h": 283.1
},
"luminance": 0.02959
}Semantic roles & 50–950 ramp
primary
#311785
secondary
#9CB93F
accent
#ED3BC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F