#3E1895#3E1895
#3E1895 is a dark, vivid violet. Relative luminance 0.038; OKLCH L 36.0% C 0.183 H 286.7°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1895 |
|---|---|
| RGB | rgb(62, 24, 149) |
| HSL | hsl(258, 72%, 34%) |
| HSV | hsv(258, 84%, 58%) |
| CMYK | cmyk(58.4%, 83.9%, 0%, 41.6%) |
| CIE-LAB | lab(23.16, 47.90, -60.81) |
| CIE-LCH | lch(23.16, 77.41, 308.23°) |
| OKLab | oklab(35.96% 0.0526 -0.1751) |
| OKLCH | oklch(35.96% 0.183 286.7) |
| XYZ | xyz(7.7364, 3.8469, 28.7628) |
| Luminance | 0.0385 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.88
Indigo (survey)
#380282
ΔE00 4.10
Royal
#0C1793
ΔE00 4.70
Indigo
#4B0082
ΔE00 4.80
Ultramarine
#2000B1
ΔE00 4.95
Cobalt Blue
#030AA7
ΔE00 5.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1895 #6F9518
analogous
#183195 #3E1895 #7D1895
triadic
#3E1895 #953E18 #18953E
tetradic
#3E1895 #951831 #6F9518 #18957D
square
#3E1895 #951831 #6F9518 #18957D
split-complementary
#3E1895 #957D18 #319518
monochromatic
#12072C #281060 #3E1895 #5420CA #7546E1
Accessibility & contrast
On white
11.87
#3E1895 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.77
#3E1895 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1895
11.87:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1895 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1895 | 1.00 | 11.87 | 1.77 | 11.87 |
| #FFFFFF | 11.87 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.77 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.87 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#123F58
Achromatopsia (no color)
#373737
Design tokens & code
CSS
--color: #3e1895; /* rgb */ color: rgb(62, 24, 149); /* oklch */ color: oklch(36.0% 0.183 286.7);
Tailwind
colors: {
custom: {
50: '#7f5cb5',
500: '#3e1895',
950: '#000000',
},
}SCSS
$custom: #3e1895; $custom-light: #7f5cb5; $custom-dark: #000000;
JSON
{
"hex": "#3e1895",
"rgb": {
"r": 62,
"g": 24,
"b": 149
},
"hsl": {
"h": 258.24,
"s": 72.254,
"l": 33.922
},
"oklch": {
"l": 0.35956,
"c": 0.18287,
"h": 286.7
},
"luminance": 0.03847
}Semantic roles & 50–950 ramp
primary
#3E1895
secondary
#9DC246
accent
#EF39B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980