#3E1F8D#3E1F8D
#3E1F8D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.167 H 287.6°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1F8D |
|---|---|
| RGB | rgb(62, 31, 141) |
| HSL | hsl(257, 64%, 34%) |
| HSV | hsv(257, 78%, 55%) |
| CMYK | cmyk(56%, 78%, 0%, 44.7%) |
| CIE-LAB | lab(23.43, 42.42, -55.41) |
| CIE-LCH | lch(23.43, 69.78, 307.44°) |
| OKLab | oklab(35.89% 0.0506 -0.1594) |
| OKLCH | oklch(35.89% 0.167 287.6) |
| XYZ | xyz(7.2829, 3.9268, 25.5683) |
| Luminance | 0.0393 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.60
Royal
#0C1793
ΔE00 5.06
Indigo
#4B0082
ΔE00 5.14
Indigo Blue
#3A18B1
ΔE00 5.15
Cobalt Blue
#030AA7
ΔE00 6.25
Ultramarine
#2000B1
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1F8D #6E8D1F
analogous
#1F378D #3E1F8D #751F8D
triadic
#3E1F8D #8D3E1F #1F8D3E
tetradic
#3E1F8D #8D1F37 #6E8D1F #1F8D75
square
#3E1F8D #8D1F37 #6E8D1F #1F8D75
split-complementary
#3E1F8D #8D751F #378D1F
monochromatic
#120929 #28145B #3E1F8D #542ABF #754ED8
Accessibility & contrast
On white
11.76
#3E1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3E1F8D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1F8D
11.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1F8D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1F8D | 1.00 | 11.76 | 1.79 | 11.76 |
| #FFFFFF | 11.76 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.76 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00358B
Tritanopia (blue-blind)
#1C3E55
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3e1f8d; /* rgb */ color: rgb(62, 31, 141); /* oklch */ color: oklch(35.9% 0.167 287.6);
Tailwind
colors: {
custom: {
50: '#7d5faf',
500: '#3e1f8d',
950: '#000000',
},
}SCSS
$custom: #3e1f8d; $custom-light: #7d5faf; $custom-dark: #000000;
JSON
{
"hex": "#3e1f8d",
"rgb": {
"r": 62,
"g": 31,
"b": 141
},
"hsl": {
"h": 256.909,
"s": 63.953,
"l": 33.725
},
"oklch": {
"l": 0.35894,
"c": 0.16726,
"h": 287.6
},
"luminance": 0.03927
}Semantic roles & 50–950 ramp
primary
#3E1F8D
secondary
#9CBB4D
accent
#E741B8
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0511
muted
#7C7980