#3E178E#3E178E
#3E178E is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.176 H 288.5°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).
Color values
| HEX | #3E178E |
|---|---|
| RGB | rgb(62, 23, 142) |
| HSL | hsl(260, 72%, 32%) |
| HSV | hsv(260, 84%, 56%) |
| CMYK | cmyk(56.3%, 83.8%, 0%, 44.3%) |
| CIE-LAB | lab(22.27, 46.37, -57.95) |
| CIE-LCH | lch(22.27, 74.22, 308.67°) |
| OKLab | oklab(35.12% 0.0558 -0.1668) |
| OKLCH | oklch(35.12% 0.176 288.5) |
| XYZ | xyz(7.1740, 3.5896, 25.9008) |
| Luminance | 0.0359 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.34
Indigo
#4B0082
ΔE00 4.08
Royal
#0C1793
ΔE00 4.87
Indigo Blue
#3A18B1
ΔE00 4.93
Cobalt Blue
#030AA7
ΔE00 5.58
Ultramarine
#2000B1
ΔE00 5.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E178E #678E17
analogous
#172B8E #3E178E #7A178E
triadic
#3E178E #8E3E17 #178E3E
tetradic
#3E178E #8E172B #678E17 #178E7A
square
#3E178E #8E172B #678E17 #178E7A
split-complementary
#3E178E #8E7A17 #2B8E17
monochromatic
#100625 #270E59 #3E178E #5520C3 #743FE0
Accessibility & contrast
On white
12.22
#3E178E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3E178E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E178E
12.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E178E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E178E | 1.00 | 12.22 | 1.72 | 12.22 |
| #FFFFFF | 12.22 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.22 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#00328C
Tritanopia (blue-blind)
#1C3B54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3e178e; /* rgb */ color: rgb(62, 23, 142); /* oklch */ color: oklch(35.1% 0.176 288.5);
Tailwind
colors: {
custom: {
50: '#7e5bb0',
500: '#3e178e',
950: '#000000',
},
}SCSS
$custom: #3e178e; $custom-light: #7e5bb0; $custom-dark: #000000;
JSON
{
"hex": "#3e178e",
"rgb": {
"r": 62,
"g": 23,
"b": 142
},
"hsl": {
"h": 259.664,
"s": 72.121,
"l": 32.353
},
"oklch": {
"l": 0.35117,
"c": 0.17584,
"h": 288.5
},
"luminance": 0.0359
}Semantic roles & 50–950 ramp
primary
#3E178E
secondary
#96C040
accent
#EF39B3
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980