#391F8A#391F8A
#391F8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.164 H 285.4°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).
Color values
| HEX | #391F8A |
|---|---|
| RGB | rgb(57, 31, 138) |
| HSL | hsl(255, 63%, 33%) |
| HSV | hsv(255, 78%, 54%) |
| CMYK | cmyk(58.7%, 77.5%, 0%, 45.9%) |
| CIE-LAB | lab(22.60, 40.82, -54.92) |
| CIE-LCH | lch(22.60, 68.43, 306.62°) |
| OKLab | oklab(35.1% 0.0436 -0.1582) |
| OKLCH | oklch(35.1% 0.164 285.4) |
| XYZ | xyz(6.7634, 3.6844, 24.3946) |
| Luminance | 0.0369 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.52
Indigo (survey)
#380282
ΔE00 4.52
Indigo
#4B0082
ΔE00 5.50
Indigo Blue
#3A18B1
ΔE00 5.57
Midnight Blue
#191970
ΔE00 5.69
Cobalt Blue
#030AA7
ΔE00 6.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391F8A #708A1F
analogous
#1F3B8A #391F8A #6E1F8A
triadic
#391F8A #8A391F #1F8A39
tetradic
#391F8A #8A1F3B #708A1F #1F8A6E
square
#391F8A #8A1F3B #708A1F #1F8A6E
split-complementary
#391F8A #8A6E1F #3B8A1F
monochromatic
#100926 #241458 #391F8A #4E2ABC #6E4CD7
Accessibility & contrast
On white
12.09
#391F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#391F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391F8A
12.09:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391F8A | 1.00 | 12.09 | 1.74 | 12.09 |
| #FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.09 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#0F3D53
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #391f8a; /* rgb */ color: rgb(57, 31, 138); /* oklch */ color: oklch(35.1% 0.164 285.4);
Tailwind
colors: {
custom: {
50: '#7a5ead',
500: '#391f8a',
950: '#000000',
},
}SCSS
$custom: #391f8a; $custom-light: #7a5ead; $custom-dark: #000000;
JSON
{
"hex": "#391f8a",
"rgb": {
"r": 57,
"g": 31,
"b": 138
},
"hsl": {
"h": 254.579,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.35096,
"c": 0.16406,
"h": 285.4
},
"luminance": 0.03685
}Semantic roles & 50–950 ramp
primary
#391F8A
secondary
#9FBA4B
accent
#E641BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F