#3E177E#3E177E
#3E177E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.5% C 0.158 H 292.9°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).
Color values
| HEX | #3E177E |
|---|---|
| RGB | rgb(62, 23, 126) |
| HSL | hsl(263, 69%, 29%) |
| HSV | hsv(263, 82%, 49%) |
| CMYK | cmyk(50.8%, 81.7%, 0%, 50.6%) |
| CIE-LAB | lab(20.61, 41.93, -50.61) |
| CIE-LCH | lch(20.61, 65.73, 309.64°) |
| OKLab | oklab(33.47% 0.0614 -0.1453) |
| OKLCH | oklch(33.47% 0.158 292.9) |
| XYZ | xyz(6.0578, 3.1431, 20.0221) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.06
Indigo
#4B0082
ΔE00 3.47
Royal Purple (survey)
#4B006E
ΔE00 5.12
Midnight Blue
#191970
ΔE00 5.83
Royal
#0C1793
ΔE00 6.16
Darkblue
#00008B
ΔE00 6.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E177E #577E17
analogous
#17247E #3E177E #72177E
triadic
#3E177E #7E3E17 #177E3E
tetradic
#3E177E #7E1724 #577E17 #177E72
square
#3E177E #7E1724 #577E17 #177E72
split-complementary
#3E177E #7E7217 #247E17
monochromatic
#0D051A #250E4A #3E177E #5720B2 #7435DA
Accessibility & contrast
On white
12.89
#3E177E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3E177E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E177E
12.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E177E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E177E | 1.00 | 12.89 | 1.63 | 12.89 |
| #FFFFFF | 12.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.89 | 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: #3e177e; /* rgb */ color: rgb(62, 23, 126); /* oklch */ color: oklch(33.5% 0.158 292.9);
Tailwind
colors: {
custom: {
50: '#7b5aa4',
500: '#3e177e',
950: '#000000',
},
}SCSS
$custom: #3e177e; $custom-light: #7b5aa4; $custom-dark: #000000;
JSON
{
"hex": "#3e177e",
"rgb": {
"r": 62,
"g": 23,
"b": 126
},
"hsl": {
"h": 262.718,
"s": 69.128,
"l": 29.216
},
"oklch": {
"l": 0.33471,
"c": 0.15776,
"h": 292.9
},
"luminance": 0.03143
}Semantic roles & 50–950 ramp
primary
#3E177E
secondary
#87B33E
accent
#EC3CA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F