#3E187F#3E187F
#3E187F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.158 H 292.4°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).
Color values
| HEX | #3E187F |
|---|---|
| RGB | rgb(62, 24, 127) |
| HSL | hsl(262, 68%, 30%) |
| HSV | hsv(262, 81%, 50%) |
| CMYK | cmyk(51.2%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(20.86, 41.76, -50.83) |
| CIE-LCH | lch(20.86, 65.78, 309.40°) |
| OKLab | oklab(33.68% 0.0603 -0.146) |
| OKLCH | oklch(33.68% 0.158 292.4) |
| XYZ | xyz(6.1429, 3.2095, 20.3704) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.18
Indigo
#4B0082
ΔE00 3.61
Royal Purple (survey)
#4B006E
ΔE00 5.33
Midnight Blue
#191970
ΔE00 5.81
Royal
#0C1793
ΔE00 6.05
Darkblue
#00008B
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E187F #597F18
analogous
#18267F #3E187F #72187F
triadic
#3E187F #7F3E18 #187F3E
tetradic
#3E187F #7F1826 #597F18 #187F72
square
#3E187F #7F1826 #597F18 #187F72
split-complementary
#3E187F #7F7218 #267F18
monochromatic
#0D051A #250E4C #3E187F #5722B2 #7438D9
Accessibility & contrast
On white
12.79
#3E187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#3E187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E187F
12.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E187F | 1.00 | 12.79 | 1.64 | 12.79 |
| #FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#29354B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3e187f; /* rgb */ color: rgb(62, 24, 127); /* oklch */ color: oklch(33.7% 0.158 292.4);
Tailwind
colors: {
custom: {
50: '#7b5aa5',
500: '#3e187f',
950: '#000000',
},
}SCSS
$custom: #3e187f; $custom-light: #7b5aa5; $custom-dark: #000000;
JSON
{
"hex": "#3e187f",
"rgb": {
"r": 62,
"g": 24,
"b": 127
},
"hsl": {
"h": 262.136,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.3368,
"c": 0.15792,
"h": 292.4
},
"luminance": 0.0321
}Semantic roles & 50–950 ramp
primary
#3E187F
secondary
#89B33F
accent
#EB3DAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F