#391EA6#391EA6
#391EA6 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.198 H 280.4°. Best body text is #FFFFFF at 10.99:1 contrast (WCAG AA passes).
Color values
| HEX | #391EA6 |
|---|---|
| RGB | rgb(57, 30, 166) |
| HSL | hsl(252, 69%, 38%) |
| HSV | hsv(252, 82%, 65%) |
| CMYK | cmyk(65.7%, 81.9%, 0%, 34.9%) |
| CIE-LAB | lab(25.41, 49.66, -67.49) |
| CIE-LCH | lch(25.41, 83.79, 306.34°) |
| OKLab | oklab(37.94% 0.0357 -0.1948) |
| OKLCH | oklch(37.94% 0.198 280.4) |
| XYZ | xyz(9.0324, 4.5509, 36.4714) |
| Luminance | 0.0455 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 1.65
Ultramarine
#2000B1
ΔE00 4.06
Cobalt Blue
#030AA7
ΔE00 4.46
Royal Blue (survey)
#0504AA
ΔE00 4.67
Royal
#0C1793
ΔE00 4.91
True Blue
#010FCC
ΔE00 5.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#391EA6 #8BA61E
analogous
#1E47A6 #391EA6 #7D1EA6
triadic
#391EA6 #A6391E #1EA639
tetradic
#391EA6 #A61E47 #8BA61E #1EA67D
square
#391EA6 #A61E47 #8BA61E #1EA67D
split-complementary
#391EA6 #A67D1E #47A61E
monochromatic
#150B3E #271572 #391EA6 #4C29D8 #775DE2
Accessibility & contrast
On white
10.99
#391EA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#391EA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #391EA6
10.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##391EA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##391EA6 | 1.00 | 10.99 | 1.91 | 10.99 |
| #FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004863
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #391ea6; /* rgb */ color: rgb(57, 30, 166); /* oklch */ color: oklch(37.9% 0.198 280.4);
Tailwind
colors: {
custom: {
50: '#7f5fc2',
500: '#391ea6',
950: '#000000',
},
}SCSS
$custom: #391ea6; $custom-light: #7f5fc2; $custom-dark: #000000;
JSON
{
"hex": "#391ea6",
"rgb": {
"r": 57,
"g": 30,
"b": 166
},
"hsl": {
"h": 251.912,
"s": 69.388,
"l": 38.431
},
"oklch": {
"l": 0.37944,
"c": 0.19807,
"h": 280.4
},
"luminance": 0.04552
}Semantic roles & 50–950 ramp
primary
#391EA6
secondary
#B0C65A
accent
#EC3CC9
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982