#391785#391785
#391785 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.166 H 287.8°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).
Color values
| HEX | #391785 |
|---|---|
| RGB | rgb(57, 23, 133) |
| HSL | hsl(259, 71%, 31%) |
| HSV | hsv(259, 83%, 52%) |
| CMYK | cmyk(57.1%, 82.7%, 0%, 47.8%) |
| CIE-LAB | lab(20.73, 43.22, -54.85) |
| CIE-LCH | lch(20.73, 69.83, 308.23°) |
| OKLab | oklab(33.64% 0.0508 -0.1579) |
| OKLCH | oklch(33.64% 0.166 287.8) |
| XYZ | xyz(6.2261, 3.1758, 22.4707) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.83
Indigo
#4B0082
ΔE00 4.13
Royal
#0C1793
ΔE00 4.72
Midnight Blue
#191970
ΔE00 5.48
Darkblue
#00008B
ΔE00 5.70
Navy
#000080
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391785 #638517
analogous
#172C85 #391785 #701785
triadic
#391785 #853917 #178539
tetradic
#391785 #85172C #638517 #178570
square
#391785 #85172C #638517 #178570
split-complementary
#391785 #857017 #2C8517
monochromatic
#0C051D #230E51 #391785 #4F20B9 #6C3ADD
Accessibility & contrast
On white
12.84
#391785 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#391785 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391785
12.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391785 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391785 | 1.00 | 12.84 | 1.64 | 12.84 |
| #FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003488
Deuteranopia (green-blind)
#002F83
Tritanopia (blue-blind)
#17384F
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #391785; /* rgb */ color: rgb(57, 23, 133); /* oklch */ color: oklch(33.6% 0.166 287.8);
Tailwind
colors: {
custom: {
50: '#7959aa',
500: '#391785',
950: '#000000',
},
}SCSS
$custom: #391785; $custom-light: #7959aa; $custom-dark: #000000;
JSON
{
"hex": "#391785",
"rgb": {
"r": 57,
"g": 23,
"b": 133
},
"hsl": {
"h": 258.545,
"s": 70.513,
"l": 30.588
},
"oklch": {
"l": 0.3364,
"c": 0.16586,
"h": 287.8
},
"luminance": 0.03176
}Semantic roles & 50–950 ramp
primary
#391785
secondary
#93B93F
accent
#ED3BB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F