#3E2591#3E2591
#3E2591 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.1% C 0.166 H 285.7°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2591 |
|---|---|
| RGB | rgb(62, 37, 145) |
| HSL | hsl(254, 59%, 36%) |
| HSV | hsv(254, 74%, 57%) |
| CMYK | cmyk(57.2%, 74.5%, 0%, 43.1%) |
| CIE-LAB | lab(24.92, 40.49, -55.43) |
| CIE-LCH | lch(24.92, 68.64, 306.14°) |
| OKLab | oklab(37.07% 0.0447 -0.1595) |
| OKLCH | oklch(37.07% 0.166 285.7) |
| XYZ | xyz(7.7575, 4.3912, 27.2214) |
| Luminance | 0.0439 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.97
Royal
#0C1793
ΔE00 5.37
Indigo (survey)
#380282
ΔE00 6.01
Indigo
#4B0082
ΔE00 6.47
Cobalt Blue
#030AA7
ΔE00 6.62
Ultramarine
#2000B1
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2591 #789125
analogous
#254291 #3E2591 #742591
triadic
#3E2591 #913E25 #25913E
tetradic
#3E2591 #912542 #789125 #259174
square
#3E2591 #912542 #789125 #259174
split-complementary
#3E2591 #917425 #429125
monochromatic
#140C2F #291960 #3E2591 #5331C2 #775BD5
Accessibility & contrast
On white
11.18
#3E2591 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#3E2591 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2591
11.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2591 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2591 | 1.00 | 11.18 | 1.88 | 11.18 |
| #FFFFFF | 11.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E94
Deuteranopia (green-blind)
#00388F
Tritanopia (blue-blind)
#174259
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #3e2591; /* rgb */ color: rgb(62, 37, 145); /* oklch */ color: oklch(37.1% 0.166 285.7);
Tailwind
colors: {
custom: {
50: '#7d62b2',
500: '#3e2591',
950: '#000000',
},
}SCSS
$custom: #3e2591; $custom-light: #7d62b2; $custom-dark: #000000;
JSON
{
"hex": "#3e2591",
"rgb": {
"r": 62,
"g": 37,
"b": 145
},
"hsl": {
"h": 253.889,
"s": 59.341,
"l": 35.686
},
"oklch": {
"l": 0.37066,
"c": 0.16569,
"h": 285.7
},
"luminance": 0.04392
}Semantic roles & 50–950 ramp
primary
#3E2591
secondary
#A3BA58
accent
#E345BE
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980