#3A1E9E#3A1E9E
#3A1E9E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.189 H 282.2°. Best body text is #FFFFFF at 11.29:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1E9E |
|---|---|
| RGB | rgb(58, 30, 158) |
| HSL | hsl(253, 68%, 37%) |
| HSV | hsv(253, 81%, 62%) |
| CMYK | cmyk(63.3%, 81%, 0%, 38%) |
| CIE-LAB | lab(24.63, 47.41, -63.93) |
| CIE-LCH | lch(24.63, 79.59, 306.56°) |
| OKLab | oklab(37.16% 0.0398 -0.1844) |
| OKLCH | oklch(37.16% 0.189 282.2) |
| XYZ | xyz(8.3788, 4.2961, 32.7288) |
| Luminance | 0.0430 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.64
Royal
#0C1793
ΔE00 4.50
Ultramarine
#2000B1
ΔE00 4.51
Cobalt Blue
#030AA7
ΔE00 4.62
Royal Blue (survey)
#0504AA
ΔE00 4.89
Indigo (survey)
#380282
ΔE00 5.78
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1E9E #829E1E
analogous
#1E429E #3A1E9E #7A1E9E
triadic
#3A1E9E #9E3A1E #1E9E3A
tetradic
#3A1E9E #9E1E42 #829E1E #1E9E7A
square
#3A1E9E #9E1E42 #829E1E #1E9E7A
split-complementary
#3A1E9E #9E7A1E #429E1E
monochromatic
#140A37 #27146B #3A1E9E #4D28D1 #7557DF
Accessibility & contrast
On white
11.29
#3A1E9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.86
#3A1E9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1E9E
11.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1E9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1E9E | 1.00 | 11.29 | 1.86 | 11.29 |
| #FFFFFF | 11.29 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.86 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.29 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#00455E
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3a1e9e; /* rgb */ color: rgb(58, 30, 158); /* oklch */ color: oklch(37.2% 0.189 282.2);
Tailwind
colors: {
custom: {
50: '#7e5fbc',
500: '#3a1e9e',
950: '#000000',
},
}SCSS
$custom: #3a1e9e; $custom-light: #7e5fbc; $custom-dark: #000000;
JSON
{
"hex": "#3a1e9e",
"rgb": {
"r": 58,
"g": 30,
"b": 158
},
"hsl": {
"h": 253.125,
"s": 68.085,
"l": 36.863
},
"oklch": {
"l": 0.37162,
"c": 0.18865,
"h": 282.2
},
"luminance": 0.04297
}Semantic roles & 50–950 ramp
primary
#3A1E9E
secondary
#ABC355
accent
#EB3DC5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981