#391E8D#391E8D
#391E8D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.169 H 284.9°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).
Color values
| HEX | #391E8D |
|---|---|
| RGB | rgb(57, 30, 141) |
| HSL | hsl(255, 65%, 34%) |
| HSV | hsv(255, 79%, 55%) |
| CMYK | cmyk(59.6%, 78.7%, 0%, 44.7%) |
| CIE-LAB | lab(22.73, 42.23, -56.58) |
| CIE-LCH | lch(22.73, 70.61, 306.74°) |
| OKLab | oklab(35.28% 0.0434 -0.163) |
| OKLCH | oklch(35.28% 0.169 284.9) |
| XYZ | xyz(6.9579, 3.7211, 25.5457) |
| Luminance | 0.0372 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.30
Indigo (survey)
#380282
ΔE00 4.44
Indigo Blue
#3A18B1
ΔE00 5.07
Indigo
#4B0082
ΔE00 5.45
Cobalt Blue
#030AA7
ΔE00 5.68
Midnight Blue
#191970
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391E8D #728D1E
analogous
#1E3A8D #391E8D #701E8D
triadic
#391E8D #8D391E #1E8D39
tetradic
#391E8D #8D1E3A #728D1E #1E8D70
square
#391E8D #8D1E3A #728D1E #1E8D70
split-complementary
#391E8D #8D701E #3A8D1E
monochromatic
#100928 #25135B #391E8D #4D29BF #6F4CD9
Accessibility & contrast
On white
12.04
#391E8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#391E8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391E8D
12.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391E8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391E8D | 1.00 | 12.04 | 1.74 | 12.04 |
| #FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#093E55
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #391e8d; /* rgb */ color: rgb(57, 30, 141); /* oklch */ color: oklch(35.3% 0.169 284.9);
Tailwind
colors: {
custom: {
50: '#7a5eaf',
500: '#391e8d',
950: '#000000',
},
}SCSS
$custom: #391e8d; $custom-light: #7a5eaf; $custom-dark: #000000;
JSON
{
"hex": "#391e8d",
"rgb": {
"r": 57,
"g": 30,
"b": 141
},
"hsl": {
"h": 254.595,
"s": 64.912,
"l": 33.529
},
"oklch": {
"l": 0.35278,
"c": 0.1687,
"h": 284.9
},
"luminance": 0.03721
}Semantic roles & 50–950 ramp
primary
#391E8D
secondary
#A0BC4B
accent
#E840BF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980