#3E187E#3E187E
#3E187E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.157 H 292.7°. Best body text is #FFFFFF at 12.83:1 contrast (WCAG AA passes).
Color values
| HEX | #3E187E |
|---|---|
| RGB | rgb(62, 24, 126) |
| HSL | hsl(262, 68%, 29%) |
| HSV | hsv(262, 81%, 49%) |
| CMYK | cmyk(50.8%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(20.76, 41.48, -50.36) |
| CIE-LCH | lch(20.76, 65.24, 309.48°) |
| OKLab | oklab(33.58% 0.0606 -0.1446) |
| OKLCH | oklch(33.58% 0.157 292.7) |
| XYZ | xyz(6.0781, 3.1835, 20.0289) |
| Luminance | 0.0318 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.23
Indigo
#4B0082
ΔE00 3.62
Royal Purple (survey)
#4B006E
ΔE00 5.23
Midnight Blue
#191970
ΔE00 5.79
Royal
#0C1793
ΔE00 6.16
Darkblue
#00008B
ΔE00 6.87
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E187E #587E18
analogous
#18257E #3E187E #71187E
triadic
#3E187E #7E3E18 #187E3E
tetradic
#3E187E #7E1825 #587E18 #187E71
square
#3E187E #7E1825 #587E18 #187E71
split-complementary
#3E187E #7E7118 #257E18
monochromatic
#0D051A #250E4B #3E187E #5722B1 #7437D9
Accessibility & contrast
On white
12.83
#3E187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#3E187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E187E
12.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E187E | 1.00 | 12.83 | 1.64 | 12.83 |
| #FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#29354B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3e187e; /* rgb */ color: rgb(62, 24, 126); /* oklch */ color: oklch(33.6% 0.157 292.7);
Tailwind
colors: {
custom: {
50: '#7b5aa4',
500: '#3e187e',
950: '#000000',
},
}SCSS
$custom: #3e187e; $custom-light: #7b5aa4; $custom-dark: #000000;
JSON
{
"hex": "#3e187e",
"rgb": {
"r": 62,
"g": 24,
"b": 126
},
"hsl": {
"h": 262.353,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.3358,
"c": 0.15677,
"h": 292.7
},
"luminance": 0.03184
}Semantic roles & 50–950 ramp
primary
#3E187E
secondary
#88B23F
accent
#EB3DAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F