#3A1E8A#3A1E8A
#3A1E8A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.1% C 0.165 H 286.1°. Best body text is #FFFFFF at 12.12:1 contrast (WCAG AA passes).
Color values
| HEX | #3A1E8A |
|---|---|
| RGB | rgb(58, 30, 138) |
| HSL | hsl(256, 64%, 33%) |
| HSV | hsv(256, 78%, 54%) |
| CMYK | cmyk(58%, 78.3%, 0%, 45.9%) |
| CIE-LAB | lab(22.52, 41.47, -55.04) |
| CIE-LCH | lch(22.52, 68.92, 307.00°) |
| OKLab | oklab(35.07% 0.0459 -0.1585) |
| OKLCH | oklch(35.07% 0.165 286.1) |
| XYZ | xyz(6.7953, 3.6627, 24.3887) |
| Luminance | 0.0366 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.30
Royal
#0C1793
ΔE00 4.60
Indigo
#4B0082
ΔE00 5.22
Indigo Blue
#3A18B1
ΔE00 5.53
Midnight Blue
#191970
ΔE00 5.80
Cobalt Blue
#030AA7
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A1E8A #6E8A1E
analogous
#1E388A #3A1E8A #701E8A
triadic
#3A1E8A #8A3A1E #1E8A3A
tetradic
#3A1E8A #8A1E38 #6E8A1E #1E8A70
square
#3A1E8A #8A1E38 #6E8A1E #1E8A70
split-complementary
#3A1E8A #8A701E #388A1E
monochromatic
#100825 #251358 #3A1E8A #4F29BC #6F4BD8
Accessibility & contrast
On white
12.12
#3A1E8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3A1E8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A1E8A
12.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A1E8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A1E8A | 1.00 | 12.12 | 1.73 | 12.12 |
| #FFFFFF | 12.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#133D53
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3a1e8a; /* rgb */ color: rgb(58, 30, 138); /* oklch */ color: oklch(35.1% 0.165 286.1);
Tailwind
colors: {
custom: {
50: '#7a5ead',
500: '#3a1e8a',
950: '#000000',
},
}SCSS
$custom: #3a1e8a; $custom-light: #7a5ead; $custom-dark: #000000;
JSON
{
"hex": "#3a1e8a",
"rgb": {
"r": 58,
"g": 30,
"b": 138
},
"hsl": {
"h": 255.556,
"s": 64.286,
"l": 32.941
},
"oklch": {
"l": 0.35067,
"c": 0.16499,
"h": 286.1
},
"luminance": 0.03663
}Semantic roles & 50–950 ramp
primary
#3A1E8A
secondary
#9DBA4A
accent
#E741BC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F