#3E277E#3E277E
#3E277E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.6% C 0.139 H 289.6°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).
Color values
| HEX | #3E277E |
|---|---|
| RGB | rgb(62, 39, 126) |
| HSL | hsl(256, 53%, 32%) |
| HSV | hsv(256, 69%, 49%) |
| CMYK | cmyk(50.8%, 69%, 0%, 50.6%) |
| CIE-LAB | lab(23.61, 33.50, -45.70) |
| CIE-LCH | lch(23.61, 56.66, 306.24°) |
| OKLab | oklab(35.6% 0.0466 -0.131) |
| OKLCH | oklch(35.6% 0.139 289.6) |
| XYZ | xyz(6.4769, 3.9813, 20.1618) |
| Luminance | 0.0398 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.99
Darkslateblue
#483D8B
ΔE00 6.23
Indigo (survey)
#380282
ΔE00 6.58
Indigo
#4B0082
ΔE00 6.78
Royal
#0C1793
ΔE00 7.08
Blueberry
#464196
ΔE00 7.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E277E #677E27
analogous
#273C7E #3E277E #69277E
triadic
#3E277E #7E3E27 #277E3E
tetradic
#3E277E #7E273C #677E27 #277E69
square
#3E277E #7E273C #677E27 #277E69
split-complementary
#3E277E #7E6927 #3C7E27
monochromatic
#100A21 #27194F #3E277E #5535AD #7455CA
Accessibility & contrast
On white
11.69
#3E277E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#3E277E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E277E
11.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E277E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E277E | 1.00 | 11.69 | 1.80 | 11.69 |
| #FFFFFF | 11.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#283C4F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3e277e; /* rgb */ color: rgb(62, 39, 126); /* oklch */ color: oklch(35.6% 0.139 289.6);
Tailwind
colors: {
custom: {
50: '#7a63a4',
500: '#3e277e',
950: '#000000',
},
}SCSS
$custom: #3e277e; $custom-light: #7a63a4; $custom-dark: #000000;
JSON
{
"hex": "#3e277e",
"rgb": {
"r": 62,
"g": 39,
"b": 126
},
"hsl": {
"h": 255.862,
"s": 52.727,
"l": 32.353
},
"oklch": {
"l": 0.35596,
"c": 0.13904,
"h": 289.6
},
"luminance": 0.03982
}Semantic roles & 50–950 ramp
primary
#3E277E
secondary
#96AF52
accent
#DC4CB6
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A050F
muted
#7C797F