#3E2198#3E2198
#3E2198 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.2% C 0.178 H 284.9°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).
Color values
| HEX | #3E2198 |
|---|---|
| RGB | rgb(62, 33, 152) |
| HSL | hsl(255, 64%, 36%) |
| HSV | hsv(255, 78%, 60%) |
| CMYK | cmyk(59.2%, 78.3%, 0%, 40.4%) |
| CIE-LAB | lab(24.88, 44.67, -59.81) |
| CIE-LCH | lch(24.88, 74.66, 306.75°) |
| OKLab | oklab(37.25% 0.0459 -0.1723) |
| OKLCH | oklch(37.25% 0.178 284.9) |
| XYZ | xyz(8.1962, 4.3783, 30.1129) |
| Luminance | 0.0438 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.65
Royal
#0C1793
ΔE00 4.97
Ultramarine
#2000B1
ΔE00 5.60
Cobalt Blue
#030AA7
ΔE00 5.60
Indigo (survey)
#380282
ΔE00 5.67
Royal Blue (survey)
#0504AA
ΔE00 5.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E2198 #7B9821
analogous
#214098 #3E2198 #7A2198
triadic
#3E2198 #983E21 #21983E
tetradic
#3E2198 #982140 #7B9821 #21987A
square
#3E2198 #982140 #7B9821 #21987A
split-complementary
#3E2198 #987A21 #409821
monochromatic
#150B33 #291666 #3E2198 #532CCA #7859DB
Accessibility & contrast
On white
11.20
#3E2198 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.88
#3E2198 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E2198
11.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E2198 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E2198 | 1.00 | 11.20 | 1.88 | 11.20 |
| #FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.88 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#0A435C
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #3e2198; /* rgb */ color: rgb(62, 33, 152); /* oklch */ color: oklch(37.2% 0.178 284.9);
Tailwind
colors: {
custom: {
50: '#7f60b7',
500: '#3e2198',
950: '#000000',
},
}SCSS
$custom: #3e2198; $custom-light: #7f60b7; $custom-dark: #000000;
JSON
{
"hex": "#3e2198",
"rgb": {
"r": 62,
"g": 33,
"b": 152
},
"hsl": {
"h": 254.622,
"s": 64.324,
"l": 36.275
},
"oklch": {
"l": 0.37248,
"c": 0.17834,
"h": 284.9
},
"luminance": 0.04379
}Semantic roles & 50–950 ramp
primary
#3E2198
secondary
#A5BF56
accent
#E740BF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980