#3E1876#3E1876
#3E1876 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.148 H 295.3°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1876 |
|---|---|
| RGB | rgb(62, 24, 118) |
| HSL | hsl(264, 66%, 28%) |
| HSV | hsv(264, 80%, 46%) |
| CMYK | cmyk(47.5%, 79.7%, 0%, 53.7%) |
| CIE-LAB | lab(19.98, 39.25, -46.53) |
| CIE-LCH | lch(19.98, 60.87, 310.15°) |
| OKLab | oklab(32.8% 0.0631 -0.1333) |
| OKLCH | oklch(32.8% 0.148 295.3) |
| XYZ | xyz(5.5824, 2.9853, 17.4181) |
| Luminance | 0.0299 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.93
Indigo
#4B0082
ΔE00 4.00
Royal Purple (survey)
#4B006E
ΔE00 4.55
Midnight Blue
#191970
ΔE00 5.77
Dark Indigo
#1F0954
ΔE00 7.12
Royal
#0C1793
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1876 #507618
analogous
#182176 #3E1876 #6D1876
triadic
#3E1876 #763E18 #18763E
tetradic
#3E1876 #761821 #507618 #18766D
square
#3E1876 #761821 #507618 #18766D
split-complementary
#3E1876 #766D18 #217618
monochromatic
#0D0519 #230E43 #3E1876 #5922A9 #7533D5
Accessibility & contrast
On white
13.15
#3E1876 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#3E1876 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1876
13.15:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1876 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1876 | 1.00 | 13.15 | 1.60 | 13.15 |
| #FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.15 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#2E3246
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3e1876; /* rgb */ color: rgb(62, 24, 118); /* oklch */ color: oklch(32.8% 0.148 295.3);
Tailwind
colors: {
custom: {
50: '#7a5a9e',
500: '#3e1876',
950: '#000000',
},
}SCSS
$custom: #3e1876; $custom-light: #7a5a9e; $custom-dark: #000000;
JSON
{
"hex": "#3e1876",
"rgb": {
"r": 62,
"g": 24,
"b": 118
},
"hsl": {
"h": 264.255,
"s": 66.197,
"l": 27.843
},
"oklch": {
"l": 0.32798,
"c": 0.14752,
"h": 295.3
},
"luminance": 0.02985
}Semantic roles & 50–950 ramp
primary
#3E1876
secondary
#7FAB3F
accent
#E93FA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E