#3E178F#3E178F
#3E178F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.177 H 288.2°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).
Color values
| HEX | #3E178F |
|---|---|
| RGB | rgb(62, 23, 143) |
| HSL | hsl(260, 72%, 33%) |
| HSV | hsv(260, 84%, 56%) |
| CMYK | cmyk(56.6%, 83.9%, 0%, 43.9%) |
| CIE-LAB | lab(22.37, 46.65, -58.39) |
| CIE-LCH | lch(22.37, 74.74, 308.62°) |
| OKLab | oklab(35.22% 0.0554 -0.1681) |
| OKLCH | oklch(35.22% 0.177 288.2) |
| XYZ | xyz(7.2495, 3.6197, 26.2980) |
| Luminance | 0.0362 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.42
Indigo
#4B0082
ΔE00 4.16
Indigo Blue
#3A18B1
ΔE00 4.78
Royal
#0C1793
ΔE00 4.83
Cobalt Blue
#030AA7
ΔE00 5.48
Ultramarine
#2000B1
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E178F #688F17
analogous
#172C8F #3E178F #7A178F
triadic
#3E178F #8F3E17 #178F3E
tetradic
#3E178F #8F172C #688F17 #178F7A
square
#3E178F #8F172C #688F17 #178F7A
split-complementary
#3E178F #8F7A17 #2C8F17
monochromatic
#100626 #270F5A #3E178F #551FC4 #7440E0
Accessibility & contrast
On white
12.18
#3E178F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3E178F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E178F
12.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E178F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E178F | 1.00 | 12.18 | 1.72 | 12.18 |
| #FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#1B3C54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3e178f; /* rgb */ color: rgb(62, 23, 143); /* oklch */ color: oklch(35.2% 0.177 288.2);
Tailwind
colors: {
custom: {
50: '#7e5bb1',
500: '#3e178f',
950: '#000000',
},
}SCSS
$custom: #3e178f; $custom-light: #7e5bb1; $custom-dark: #000000;
JSON
{
"hex": "#3e178f",
"rgb": {
"r": 62,
"g": 23,
"b": 143
},
"hsl": {
"h": 259.5,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.35222,
"c": 0.17696,
"h": 288.2
},
"luminance": 0.0362
}Semantic roles & 50–950 ramp
primary
#3E178F
secondary
#97C141
accent
#EF39B4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980