#3E317E#3E317E
#3E317E is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.3% C 0.125 H 286.4°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).
Color values
| HEX | #3E317E |
|---|---|
| RGB | rgb(62, 49, 126) |
| HSL | hsl(250, 44%, 34%) |
| HSV | hsv(250, 61%, 49%) |
| CMYK | cmyk(50.8%, 61.1%, 0%, 50.6%) |
| CIE-LAB | lab(25.94, 27.29, -41.92) |
| CIE-LCH | lch(25.94, 50.02, 303.07°) |
| OKLab | oklab(37.29% 0.0353 -0.1199) |
| OKLCH | oklch(37.29% 0.125 286.4) |
| XYZ | xyz(6.8497, 4.7268, 20.2861) |
| Luminance | 0.0473 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 3.79
Blueberry
#464196
ΔE00 5.61
Midnight Blue
#191970
ΔE00 7.53
Sapphire (survey)
#2138AB
ΔE00 8.31
Rebeccapurple
#663399
ΔE00 8.36
Royal
#0C1793
ΔE00 8.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E317E #717E31
analogous
#314B7E #3E317E #65317E
triadic
#3E317E #7E3E31 #317E3E
tetradic
#3E317E #7E314B #717E31 #317E65
square
#3E317E #7E314B #717E31 #317E65
split-complementary
#3E317E #7E6531 #4B7E31
monochromatic
#130F26 #282052 #3E317E #5442AA #7666C3
Accessibility & contrast
On white
10.79
#3E317E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.95
#3E317E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E317E
10.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E317E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E317E | 1.00 | 10.79 | 1.95 | 10.79 |
| #FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.95 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#003B7C
Tritanopia (blue-blind)
#284352
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #3e317e; /* rgb */ color: rgb(62, 49, 126); /* oklch */ color: oklch(37.3% 0.125 286.4);
Tailwind
colors: {
custom: {
50: '#7969a4',
500: '#3e317e',
950: '#000000',
},
}SCSS
$custom: #3e317e; $custom-light: #7969a4; $custom-dark: #000000;
JSON
{
"hex": "#3e317e",
"rgb": {
"r": 62,
"g": 49,
"b": 126
},
"hsl": {
"h": 250.13,
"s": 44,
"l": 34.314
},
"oklch": {
"l": 0.37293,
"c": 0.12494,
"h": 286.4
},
"luminance": 0.04727
}Semantic roles & 50–950 ramp
primary
#3E317E
secondary
#9EAB60
accent
#D454BE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#09060F
muted
#7B7A7F