#391A7E#391A7E
#391A7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.155 H 289.2°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).
Color values
| HEX | #391A7E |
|---|---|
| RGB | rgb(57, 26, 126) |
| HSL | hsl(259, 66%, 30%) |
| HSV | hsv(259, 79%, 49%) |
| CMYK | cmyk(54.8%, 79.4%, 0%, 50.6%) |
| CIE-LAB | lab(20.50, 39.77, -50.82) |
| CIE-LCH | lch(20.50, 64.53, 308.05°) |
| OKLab | oklab(33.26% 0.0509 -0.1461) |
| OKLCH | oklch(33.26% 0.155 289.2) |
| XYZ | xyz(5.8215, 3.1147, 20.0291) |
| Luminance | 0.0312 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.51
Indigo
#4B0082
ΔE00 4.52
Midnight Blue
#191970
ΔE00 4.92
Royal
#0C1793
ΔE00 5.46
Royal Purple (survey)
#4B006E
ΔE00 6.08
Darkblue
#00008B
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391A7E #5F7E1A
analogous
#1A2D7E #391A7E #6B1A7E
triadic
#391A7E #7E391A #1A7E39
tetradic
#391A7E #7E1A2D #5F7E1A #1A7E6B
square
#391A7E #7E1A2D #5F7E1A #1A7E6B
split-complementary
#391A7E #7E6B1A #2D7E1A
monochromatic
#0B0519 #22104B #391A7E #5024B1 #6C3CD7
Accessibility & contrast
On white
12.94
#391A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#391A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391A7E
12.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391A7E | 1.00 | 12.94 | 1.62 | 12.94 |
| #FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#1E364B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #391a7e; /* rgb */ color: rgb(57, 26, 126); /* oklch */ color: oklch(33.3% 0.155 289.2);
Tailwind
colors: {
custom: {
50: '#785ba4',
500: '#391a7e',
950: '#000000',
},
}SCSS
$custom: #391a7e; $custom-light: #785ba4; $custom-dark: #000000;
JSON
{
"hex": "#391a7e",
"rgb": {
"r": 57,
"g": 26,
"b": 126
},
"hsl": {
"h": 258.6,
"s": 65.789,
"l": 29.804
},
"oklch": {
"l": 0.33256,
"c": 0.15473,
"h": 289.2
},
"luminance": 0.03115
}Semantic roles & 50–950 ramp
primary
#391A7E
secondary
#8FB242
accent
#E93FB4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F