#391A7F#391A7F
#391A7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.156 H 288.9°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).
Color values
| HEX | #391A7F |
|---|---|
| RGB | rgb(57, 26, 127) |
| HSL | hsl(258, 66%, 30%) |
| HSV | hsv(258, 80%, 50%) |
| CMYK | cmyk(55.1%, 79.5%, 0%, 50.2%) |
| CIE-LAB | lab(20.60, 40.07, -51.29) |
| CIE-LCH | lch(20.60, 65.08, 308.00°) |
| OKLab | oklab(33.36% 0.0506 -0.1475) |
| OKLCH | oklch(33.36% 0.156 288.9) |
| XYZ | xyz(5.8864, 3.1407, 20.3706) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.47
Indigo
#4B0082
ΔE00 4.50
Midnight Blue
#191970
ΔE00 4.96
Royal
#0C1793
ΔE00 5.34
Royal Purple (survey)
#4B006E
ΔE00 6.16
Darkblue
#00008B
ΔE00 6.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391A7F #607F1A
analogous
#1A2D7F #391A7F #6C1A7F
triadic
#391A7F #7F391A #1A7F39
tetradic
#391A7F #7F1A2D #607F1A #1A7F6C
square
#391A7F #7F1A2D #607F1A #1A7F6C
split-complementary
#391A7F #7F6C1A #2D7F1A
monochromatic
#0B0519 #22104C #391A7F #5024B2 #6C3CD7
Accessibility & contrast
On white
12.90
#391A7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#391A7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391A7F
12.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391A7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391A7F | 1.00 | 12.90 | 1.63 | 12.90 |
| #FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#1E374C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #391a7f; /* rgb */ color: rgb(57, 26, 127); /* oklch */ color: oklch(33.4% 0.156 288.9);
Tailwind
colors: {
custom: {
50: '#785ba5',
500: '#391a7f',
950: '#000000',
},
}SCSS
$custom: #391a7f; $custom-light: #785ba5; $custom-dark: #000000;
JSON
{
"hex": "#391a7f",
"rgb": {
"r": 57,
"g": 26,
"b": 127
},
"hsl": {
"h": 258.416,
"s": 66.013,
"l": 30
},
"oklch": {
"l": 0.33357,
"c": 0.15593,
"h": 288.9
},
"luminance": 0.03141
}Semantic roles & 50–950 ramp
primary
#391A7F
secondary
#90B342
accent
#E93FB5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F