#3E177F#3E177F
#3E177F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.159 H 292.6°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).
Color values
| HEX | #3E177F |
|---|---|
| RGB | rgb(62, 23, 127) |
| HSL | hsl(263, 69%, 29%) |
| HSV | hsv(263, 82%, 50%) |
| CMYK | cmyk(51.2%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(20.71, 42.21, -51.08) |
| CIE-LCH | lch(20.71, 66.27, 309.57°) |
| OKLab | oklab(33.57% 0.0611 -0.1467) |
| OKLCH | oklch(33.57% 0.159 292.6) |
| XYZ | xyz(6.1227, 3.1690, 20.3636) |
| Luminance | 0.0317 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.01
Indigo
#4B0082
ΔE00 3.46
Royal Purple (survey)
#4B006E
ΔE00 5.22
Midnight Blue
#191970
ΔE00 5.86
Royal
#0C1793
ΔE00 6.05
Darkblue
#00008B
ΔE00 6.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E177F #587F17
analogous
#17247F #3E177F #72177F
triadic
#3E177F #7F3E17 #177F3E
tetradic
#3E177F #7F1724 #587F17 #177F72
square
#3E177F #7F1724 #587F17 #177F72
split-complementary
#3E177F #7F7217 #247F17
monochromatic
#0D051A #250E4B #3E177F #5720B3 #7436DB
Accessibility & contrast
On white
12.85
#3E177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3E177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E177F
12.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E177F | 1.00 | 12.85 | 1.63 | 12.85 |
| #FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#29354B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3e177f; /* rgb */ color: rgb(62, 23, 127); /* oklch */ color: oklch(33.6% 0.159 292.6);
Tailwind
colors: {
custom: {
50: '#7b5aa5',
500: '#3e177f',
950: '#000000',
},
}SCSS
$custom: #3e177f; $custom-light: #7b5aa5; $custom-dark: #000000;
JSON
{
"hex": "#3e177f",
"rgb": {
"r": 62,
"g": 23,
"b": 127
},
"hsl": {
"h": 262.5,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.33572,
"c": 0.15889,
"h": 292.6
},
"luminance": 0.03169
}Semantic roles & 50–950 ramp
primary
#3E177F
secondary
#88B43E
accent
#EC3CAA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F