#3E1B8F#3E1B8F
#3E1B8F is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.173 H 287.7°. Best body text is #FFFFFF at 11.94:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1B8F |
|---|---|
| RGB | rgb(62, 27, 143) |
| HSL | hsl(258, 68%, 33%) |
| HSV | hsv(258, 81%, 56%) |
| CMYK | cmyk(56.6%, 81.1%, 0%, 43.9%) |
| CIE-LAB | lab(22.97, 44.91, -57.41) |
| CIE-LCH | lch(22.97, 72.89, 308.04°) |
| OKLab | oklab(35.63% 0.0528 -0.1652) |
| OKLCH | oklch(35.63% 0.173 287.7) |
| XYZ | xyz(7.3350, 3.7908, 26.3265) |
| Luminance | 0.0379 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.00
Indigo
#4B0082
ΔE00 4.65
Indigo Blue
#3A18B1
ΔE00 4.75
Royal
#0C1793
ΔE00 4.84
Cobalt Blue
#030AA7
ΔE00 5.72
Ultramarine
#2000B1
ΔE00 5.86
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1B8F #6C8F1B
analogous
#1B328F #3E1B8F #781B8F
triadic
#3E1B8F #8F3E1B #1B8F3E
tetradic
#3E1B8F #8F1B32 #6C8F1B #1B8F78
square
#3E1B8F #8F1B32 #6C8F1B #1B8F78
split-complementary
#3E1B8F #8F781B #328F1B
monochromatic
#110828 #28115C #3E1B8F #5425C2 #7548DC
Accessibility & contrast
On white
11.94
#3E1B8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.76
#3E1B8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1B8F
11.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1B8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1B8F | 1.00 | 11.94 | 1.76 | 11.94 |
| #FFFFFF | 11.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.76 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#1A3D55
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3e1b8f; /* rgb */ color: rgb(62, 27, 143); /* oklch */ color: oklch(35.6% 0.173 287.7);
Tailwind
colors: {
custom: {
50: '#7d5db1',
500: '#3e1b8f',
950: '#000000',
},
}SCSS
$custom: #3e1b8f; $custom-light: #7d5db1; $custom-dark: #000000;
JSON
{
"hex": "#3e1b8f",
"rgb": {
"r": 62,
"g": 27,
"b": 143
},
"hsl": {
"h": 258.103,
"s": 68.235,
"l": 33.333
},
"oklch": {
"l": 0.35634,
"c": 0.17349,
"h": 287.7
},
"luminance": 0.03791
}Semantic roles & 50–950 ramp
primary
#3E1B8F
secondary
#9ABE48
accent
#EB3DB6
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980