#3E2998#3E2998
#3E2998 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.3% C 0.170 H 283.6°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2998 |
|---|---|
| RGB | rgb(62, 41, 152) |
| HSL | hsl(251, 58%, 38%) |
| HSV | hsv(251, 73%, 60%) |
| CMYK | cmyk(59.2%, 73%, 0%, 40.4%) |
| CIE-LAB | lab(26.38, 40.44, -57.36) |
| CIE-LCH | lch(26.38, 70.18, 305.19°) |
| OKLab | oklab(38.3% 0.0399 -0.1652) |
| OKLCH | oklch(38.3% 0.17 283.6) |
| XYZ | xyz(8.4453, 4.8765, 30.1959) |
| Luminance | 0.0488 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 4.58
Royal
#0C1793
ΔE00 5.79
Sapphire (survey)
#2138AB
ΔE00 6.22
Darkslateblue
#483D8B
ΔE00 6.41
Blueberry
#464196
ΔE00 6.78
Cobalt Blue
#030AA7
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2998 #839829
analogous
#294C98 #3E2998 #752998
triadic
#3E2998 #983E29 #29983E
tetradic
#3E2998 #98294C #839829 #299875
square
#3E2998 #98294C #839829 #299875
split-complementary
#3E2998 #987529 #4C9829
monochromatic
#170F38 #2A1C68 #3E2998 #5236C8 #7B66D6
Accessibility & contrast
On white
10.63
#3E2998 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.98
#3E2998 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2998
10.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2998 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2998 | 1.00 | 10.63 | 1.98 | 10.63 |
| #FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.98 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00429B
Deuteranopia (green-blind)
#003B96
Tritanopia (blue-blind)
#09475E
Achromatopsia (no color)
#3E3E3E
Design tokens & code
CSS
--color: #3e2998; /* rgb */ color: rgb(62, 41, 152); /* oklch */ color: oklch(38.3% 0.170 283.6);
Tailwind
colors: {
custom: {
50: '#7e65b7',
500: '#3e2998',
950: '#000000',
},
}SCSS
$custom: #3e2998; $custom-light: #7e65b7; $custom-dark: #000000;
JSON
{
"hex": "#3e2998",
"rgb": {
"r": 62,
"g": 41,
"b": 152
},
"hsl": {
"h": 251.351,
"s": 57.513,
"l": 37.843
},
"oklch": {
"l": 0.38301,
"c": 0.16994,
"h": 283.6
},
"luminance": 0.04877
}Semantic roles & 50–950 ramp
primary
#3E2998
secondary
#ABBC61
accent
#E147C4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80