#3E1F9A#3E1F9A
#3E1F9A is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.183 H 284.8°. Best body text is #FFFFFF at 11.25:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1F9A |
|---|---|
| RGB | rgb(62, 31, 154) |
| HSL | hsl(255, 66%, 36%) |
| HSV | hsv(255, 80%, 60%) |
| CMYK | cmyk(59.7%, 79.9%, 0%, 39.6%) |
| CIE-LAB | lab(24.75, 46.23, -61.26) |
| CIE-LCH | lch(24.75, 76.74, 307.04°) |
| OKLab | oklab(37.22% 0.0466 -0.1765) |
| OKLCH | oklch(37.22% 0.183 284.8) |
| XYZ | xyz(8.3075, 4.3367, 30.9649) |
| Luminance | 0.0434 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.25
Royal
#0C1793
ΔE00 4.90
Ultramarine
#2000B1
ΔE00 5.17
Cobalt Blue
#030AA7
ΔE00 5.27
Indigo (survey)
#380282
ΔE00 5.53
Royal Blue (survey)
#0504AA
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1F9A #7B9A1F
analogous
#1F3E9A #3E1F9A #7C1F9A
triadic
#3E1F9A #9A3E1F #1F9A3E
tetradic
#3E1F9A #9A1F3E #7B9A1F #1F9A7C
square
#3E1F9A #9A1F3E #7B9A1F #1F9A7C
split-complementary
#3E1F9A #9A7C1F #3E9A1F
monochromatic
#150A34 #291567 #3E1F9A #5329CD #7856DD
Accessibility & contrast
On white
11.25
#3E1F9A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#3E1F9A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1F9A
11.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1F9A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1F9A | 1.00 | 11.25 | 1.87 | 11.25 |
| #FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9D
Deuteranopia (green-blind)
#003798
Tritanopia (blue-blind)
#05435C
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #3e1f9a; /* rgb */ color: rgb(62, 31, 154); /* oklch */ color: oklch(37.2% 0.183 284.8);
Tailwind
colors: {
custom: {
50: '#7f5fb9',
500: '#3e1f9a',
950: '#000000',
},
}SCSS
$custom: #3e1f9a; $custom-light: #7f5fb9; $custom-dark: #000000;
JSON
{
"hex": "#3e1f9a",
"rgb": {
"r": 62,
"g": 31,
"b": 154
},
"hsl": {
"h": 255.122,
"s": 66.486,
"l": 36.275
},
"oklch": {
"l": 0.37219,
"c": 0.18258,
"h": 284.8
},
"luminance": 0.04337
}Semantic roles & 50–950 ramp
primary
#3E1F9A
secondary
#A5C154
accent
#E93EBE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981