#391F8D#391F8D
#391F8D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.4% C 0.168 H 284.8°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).
Color values
| HEX | #391F8D |
|---|---|
| RGB | rgb(57, 31, 141) |
| HSL | hsl(254, 64%, 34%) |
| HSV | hsv(254, 78%, 55%) |
| CMYK | cmyk(59.6%, 78%, 0%, 44.7%) |
| CIE-LAB | lab(22.90, 41.73, -56.29) |
| CIE-LCH | lch(22.90, 70.07, 306.55°) |
| OKLab | oklab(35.4% 0.0427 -0.1622) |
| OKLCH | oklch(35.4% 0.168 284.8) |
| XYZ | xyz(6.9836, 3.7725, 25.5543) |
| Luminance | 0.0377 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.36
Indigo (survey)
#380282
ΔE00 4.64
Indigo Blue
#3A18B1
ΔE00 5.11
Indigo
#4B0082
ΔE00 5.62
Cobalt Blue
#030AA7
ΔE00 5.79
Midnight Blue
#191970
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391F8D #738D1F
analogous
#1F3C8D #391F8D #701F8D
triadic
#391F8D #8D391F #1F8D39
tetradic
#391F8D #8D1F3C #738D1F #1F8D70
square
#391F8D #8D1F3C #738D1F #1F8D70
split-complementary
#391F8D #8D701F #3C8D1F
monochromatic
#100929 #25145B #391F8D #4D2ABF #6F4ED8
Accessibility & contrast
On white
11.97
#391F8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#391F8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391F8D
11.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391F8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391F8D | 1.00 | 11.97 | 1.75 | 11.97 |
| #FFFFFF | 11.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#093E55
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #391f8d; /* rgb */ color: rgb(57, 31, 141); /* oklch */ color: oklch(35.4% 0.168 284.8);
Tailwind
colors: {
custom: {
50: '#7a5eaf',
500: '#391f8d',
950: '#000000',
},
}SCSS
$custom: #391f8d; $custom-light: #7a5eaf; $custom-dark: #000000;
JSON
{
"hex": "#391f8d",
"rgb": {
"r": 57,
"g": 31,
"b": 141
},
"hsl": {
"h": 254.182,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.35402,
"c": 0.1677,
"h": 284.8
},
"luminance": 0.03773
}Semantic roles & 50–950 ramp
primary
#391F8D
secondary
#A1BB4D
accent
#E741C0
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0511
muted
#7C7980