#3E1F73#3E1F73
#3E1F73 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.136 H 294.9°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1F73 |
|---|---|
| RGB | rgb(62, 31, 115) |
| HSL | hsl(262, 58%, 29%) |
| HSV | hsv(262, 73%, 45%) |
| CMYK | cmyk(46.1%, 73%, 0%, 54.9%) |
| CIE-LAB | lab(20.99, 34.79, -42.96) |
| CIE-LCH | lch(20.99, 55.28, 309.00°) |
| OKLab | oklab(33.42% 0.057 -0.1229) |
| OKLCH | oklch(33.42% 0.136 294.9) |
| XYZ | xyz(5.5703, 3.2418, 16.5486) |
| Luminance | 0.0324 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo
#4B0082
ΔE00 5.54
Indigo (survey)
#380282
ΔE00 5.59
Royal Purple (survey)
#4B006E
ΔE00 5.66
Midnight Blue
#191970
ΔE00 5.76
Dark Indigo
#1F0954
ΔE00 7.35
Royal
#0C1793
ΔE00 7.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1F73 #54731F
analogous
#1F2A73 #3E1F73 #681F73
triadic
#3E1F73 #733E1F #1F733E
tetradic
#3E1F73 #731F2A #54731F #1F7368
square
#3E1F73 #731F2A #54731F #1F7368
split-complementary
#3E1F73 #73681F #2A731F
monochromatic
#0D0618 #241243 #3E1F73 #582CA3 #7441CC
Accessibility & contrast
On white
12.74
#3E1F73 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#3E1F73 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1F73
12.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1F73 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1F73 | 1.00 | 12.74 | 1.65 | 12.74 |
| #FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003171
Tritanopia (blue-blind)
#2F3446
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3e1f73; /* rgb */ color: rgb(62, 31, 115); /* oklch */ color: oklch(33.4% 0.136 294.9);
Tailwind
colors: {
custom: {
50: '#795d9c',
500: '#3e1f73',
950: '#000000',
},
}SCSS
$custom: #3e1f73; $custom-light: #795d9c; $custom-dark: #000000;
JSON
{
"hex": "#3e1f73",
"rgb": {
"r": 62,
"g": 31,
"b": 115
},
"hsl": {
"h": 262.143,
"s": 57.534,
"l": 28.627
},
"oklch": {
"l": 0.33421,
"c": 0.1355,
"h": 294.9
},
"luminance": 0.03242
}Semantic roles & 50–950 ramp
primary
#3E1F73
secondary
#83A747
accent
#E147A8
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040E
muted
#7B797E