#3E1F8A#3E1F8A
#3E1F8A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.164 H 288.3°. Best body text is #FFFFFF at 11.88:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1F8A |
|---|---|
| RGB | rgb(62, 31, 138) |
| HSL | hsl(257, 63%, 33%) |
| HSV | hsv(257, 78%, 54%) |
| CMYK | cmyk(55.1%, 77.5%, 0%, 45.9%) |
| CIE-LAB | lab(23.13, 41.54, -54.03) |
| CIE-LCH | lch(23.13, 68.15, 307.56°) |
| OKLab | oklab(35.6% 0.0514 -0.1554) |
| OKLCH | oklch(35.6% 0.164 288.3) |
| XYZ | xyz(7.0627, 3.8387, 24.4086) |
| Luminance | 0.0384 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.49
Indigo
#4B0082
ΔE00 5.00
Royal
#0C1793
ΔE00 5.23
Indigo Blue
#3A18B1
ΔE00 5.61
Midnight Blue
#191970
ΔE00 6.28
Cobalt Blue
#030AA7
ΔE00 6.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1F8A #6B8A1F
analogous
#1F358A #3E1F8A #731F8A
triadic
#3E1F8A #8A3E1F #1F8A3E
tetradic
#3E1F8A #8A1F35 #6B8A1F #1F8A73
square
#3E1F8A #8A1F35 #6B8A1F #1F8A73
split-complementary
#3E1F8A #8A731F #358A1F
monochromatic
#110926 #281458 #3E1F8A #542ABC #754CD7
Accessibility & contrast
On white
11.88
#3E1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#3E1F8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1F8A
11.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1F8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1F8A | 1.00 | 11.88 | 1.77 | 11.88 |
| #FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003488
Tritanopia (blue-blind)
#1F3D53
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3e1f8a; /* rgb */ color: rgb(62, 31, 138); /* oklch */ color: oklch(35.6% 0.164 288.3);
Tailwind
colors: {
custom: {
50: '#7c5ead',
500: '#3e1f8a',
950: '#000000',
},
}SCSS
$custom: #3e1f8a; $custom-light: #7c5ead; $custom-dark: #000000;
JSON
{
"hex": "#3e1f8a",
"rgb": {
"r": 62,
"g": 31,
"b": 138
},
"hsl": {
"h": 257.383,
"s": 63.314,
"l": 33.137
},
"oklch": {
"l": 0.35595,
"c": 0.16367,
"h": 288.3
},
"luminance": 0.03839
}Semantic roles & 50–950 ramp
primary
#3E1F8A
secondary
#9ABA4B
accent
#E641B7
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0A0510
muted
#7C797F