#391786#391786
#391786 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.167 H 287.6°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).
Color values
| HEX | #391786 |
|---|---|
| RGB | rgb(57, 23, 134) |
| HSL | hsl(258, 71%, 31%) |
| HSV | hsv(258, 83%, 53%) |
| CMYK | cmyk(57.5%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(20.84, 43.50, -55.31) |
| CIE-LCH | lch(20.84, 70.37, 308.19°) |
| OKLab | oklab(33.75% 0.0505 -0.1592) |
| OKLCH | oklch(33.75% 0.167 287.6) |
| XYZ | xyz(6.2955, 3.2035, 22.8362) |
| Luminance | 0.0320 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.85
Indigo
#4B0082
ΔE00 4.16
Royal
#0C1793
ΔE00 4.64
Midnight Blue
#191970
ΔE00 5.56
Darkblue
#00008B
ΔE00 5.66
Cobalt Blue
#030AA7
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391786 #648617
analogous
#172D86 #391786 #701786
triadic
#391786 #863917 #178639
tetradic
#391786 #86172D #648617 #178670
square
#391786 #86172D #648617 #178670
split-complementary
#391786 #867017 #2D8617
monochromatic
#0D051E #230E52 #391786 #4F20BA #6C3ADD
Accessibility & contrast
On white
12.80
#391786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#391786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391786
12.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391786 | 1.00 | 12.80 | 1.64 | 12.80 |
| #FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002F84
Tritanopia (blue-blind)
#16384F
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #391786; /* rgb */ color: rgb(57, 23, 134); /* oklch */ color: oklch(33.7% 0.167 287.6);
Tailwind
colors: {
custom: {
50: '#795aaa',
500: '#391786',
950: '#000000',
},
}SCSS
$custom: #391786; $custom-light: #795aaa; $custom-dark: #000000;
JSON
{
"hex": "#391786",
"rgb": {
"r": 57,
"g": 23,
"b": 134
},
"hsl": {
"h": 258.378,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.33745,
"c": 0.16702,
"h": 287.6
},
"luminance": 0.03204
}Semantic roles & 50–950 ramp
primary
#391786
secondary
#94BA3F
accent
#ED3AB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F