#391F7F#391F7F
#391F7F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.150 H 288.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #391F7F |
|---|---|
| RGB | rgb(57, 31, 127) |
| HSL | hsl(256, 61%, 31%) |
| HSV | hsv(256, 76%, 50%) |
| CMYK | cmyk(55.1%, 75.6%, 0%, 50.2%) |
| CIE-LAB | lab(21.51, 37.47, -49.79) |
| CIE-LCH | lch(21.51, 62.31, 306.97°) |
| OKLab | oklab(34% 0.0465 -0.1431) |
| OKLCH | oklch(34% 0.15 288) |
| XYZ | xyz(6.0070, 3.3818, 20.4108) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.57
Midnight Blue
#191970
ΔE00 4.87
Indigo
#4B0082
ΔE00 5.41
Royal
#0C1793
ΔE00 5.54
Royal Purple (survey)
#4B006E
ΔE00 6.90
Darkblue
#00008B
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391F7F #657F1F
analogous
#1F357F #391F7F #691F7F
triadic
#391F7F #7F391F #1F7F39
tetradic
#391F7F #7F1F35 #657F1F #1F7F69
square
#391F7F #7F1F35 #657F1F #1F7F69
split-complementary
#391F7F #7F691F #357F1F
monochromatic
#0D071D #23134E #391F7F #4F2BB0 #6C46D2
Accessibility & contrast
On white
12.53
#391F7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#391F7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391F7F
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391F7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391F7F | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00317D
Tritanopia (blue-blind)
#1D394D
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #391f7f; /* rgb */ color: rgb(57, 31, 127); /* oklch */ color: oklch(34.0% 0.150 288.0);
Tailwind
colors: {
custom: {
50: '#785da5',
500: '#391f7f',
950: '#000000',
},
}SCSS
$custom: #391f7f; $custom-light: #785da5; $custom-dark: #000000;
JSON
{
"hex": "#391f7f",
"rgb": {
"r": 57,
"g": 31,
"b": 127
},
"hsl": {
"h": 256.25,
"s": 60.759,
"l": 30.98
},
"oklch": {
"l": 0.34,
"c": 0.15049,
"h": 288
},
"luminance": 0.03382
}Semantic roles & 50–950 ramp
primary
#391F7F
secondary
#95B248
accent
#E444B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F