#3E1276#3E1276
#3E1276 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.154 H 296.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1276 |
|---|---|
| RGB | rgb(62, 18, 118) |
| HSL | hsl(266, 74%, 27%) |
| HSV | hsv(266, 85%, 46%) |
| CMYK | cmyk(47.5%, 84.7%, 0%, 53.7%) |
| CIE-LAB | lab(19.08, 41.88, -48.02) |
| CIE-LCH | lch(19.08, 63.72, 311.09°) |
| OKLab | oklab(32.17% 0.068 -0.1377) |
| OKLCH | oklch(32.17% 0.154 296.3) |
| XYZ | xyz(5.4721, 2.7646, 17.3813) |
| Luminance | 0.0277 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.12
Indigo
#4B0082
ΔE00 3.23
Royal Purple (survey)
#4B006E
ΔE00 3.86
Midnight Blue
#191970
ΔE00 6.09
Deep Blue
#040273
ΔE00 6.85
Dark Royal Blue
#02066F
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1276 #4A7612
analogous
#121876 #3E1276 #701276
triadic
#3E1276 #763E12 #12763E
tetradic
#3E1276 #761218 #4A7612 #127670
square
#3E1276 #761218 #4A7612 #127670
split-complementary
#3E1276 #767012 #187612
monochromatic
#0E041B #220A41 #3E1276 #5A1AAB #7625DE
Accessibility & contrast
On white
13.52
#3E1276 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#3E1276 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1276
13.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1276 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1276 | 1.00 | 13.52 | 1.55 | 13.52 |
| #FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#2E2F45
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #3e1276; /* rgb */ color: rgb(62, 18, 118); /* oklch */ color: oklch(32.2% 0.154 296.3);
Tailwind
colors: {
custom: {
50: '#7a579e',
500: '#3e1276',
950: '#000000',
},
}SCSS
$custom: #3e1276; $custom-light: #7a579e; $custom-dark: #000000;
JSON
{
"hex": "#3e1276",
"rgb": {
"r": 62,
"g": 18,
"b": 118
},
"hsl": {
"h": 266.4,
"s": 73.529,
"l": 26.667
},
"oklch": {
"l": 0.32165,
"c": 0.15353,
"h": 296.3
},
"luminance": 0.02765
}Semantic roles & 50–950 ramp
primary
#3E1276
secondary
#79AD37
accent
#F0389F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E