#3E1F9F#3E1F9F
#3E1F9F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.188 H 283.8°. Best body text is #FFFFFF at 11.04:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1F9F |
|---|---|
| RGB | rgb(62, 31, 159) |
| HSL | hsl(255, 67%, 37%) |
| HSV | hsv(255, 81%, 62%) |
| CMYK | cmyk(61%, 80.5%, 0%, 37.6%) |
| CIE-LAB | lab(25.28, 47.68, -63.45) |
| CIE-LCH | lch(25.28, 79.37, 306.93°) |
| OKLab | oklab(37.74% 0.0451 -0.1829) |
| OKLCH | oklch(37.74% 0.188 283.8) |
| XYZ | xyz(8.7327, 4.5067, 33.2039) |
| Luminance | 0.0451 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.59
Ultramarine
#2000B1
ΔE00 4.81
Royal
#0C1793
ΔE00 5.06
Cobalt Blue
#030AA7
ΔE00 5.09
Royal Blue (survey)
#0504AA
ΔE00 5.33
Indigo (survey)
#380282
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1F9F #809F1F
analogous
#1F409F #3E1F9F #7E1F9F
triadic
#3E1F9F #9F3E1F #1F9F3E
tetradic
#3E1F9F #9F1F40 #809F1F #1F9F7E
square
#3E1F9F #9F1F40 #809F1F #1F9F7E
split-complementary
#3E1F9F #9F7E1F #409F1F
monochromatic
#160B39 #2A156C #3E1F9F #5229D2 #7A5ADF
Accessibility & contrast
On white
11.04
#3E1F9F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.90
#3E1F9F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1F9F
11.04:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1F9F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1F9F | 1.00 | 11.04 | 1.90 | 11.04 |
| #FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.90 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.04 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3e1f9f; /* rgb */ color: rgb(62, 31, 159); /* oklch */ color: oklch(37.7% 0.188 283.8);
Tailwind
colors: {
custom: {
50: '#8060bd',
500: '#3e1f9f',
950: '#000000',
},
}SCSS
$custom: #3e1f9f; $custom-light: #8060bd; $custom-dark: #000000;
JSON
{
"hex": "#3e1f9f",
"rgb": {
"r": 62,
"g": 31,
"b": 159
},
"hsl": {
"h": 254.531,
"s": 67.368,
"l": 37.255
},
"oklch": {
"l": 0.37741,
"c": 0.18837,
"h": 283.8
},
"luminance": 0.04507
}Semantic roles & 50–950 ramp
primary
#3E1F9F
secondary
#A9C357
accent
#EA3EC0
background
#F8F5FB
surface
#F0EAF7
border
#CBC6D0
text
#0B0512
muted
#7C7981