#3E1F9B#3E1F9B
#3E1F9B is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.184 H 284.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).
Color values
| HEX | #3E1F9B |
|---|---|
| RGB | rgb(62, 31, 155) |
| HSL | hsl(255, 67%, 36%) |
| HSV | hsv(255, 80%, 61%) |
| CMYK | cmyk(60%, 80%, 0%, 39.2%) |
| CIE-LAB | lab(24.86, 46.52, -61.70) |
| CIE-LCH | lch(24.86, 77.27, 307.02°) |
| OKLab | oklab(37.32% 0.0463 -0.1778) |
| OKLCH | oklch(37.32% 0.184 284.6) |
| XYZ | xyz(8.3912, 4.3701, 31.4053) |
| Luminance | 0.0437 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.12
Royal
#0C1793
ΔE00 4.92
Ultramarine
#2000B1
ΔE00 5.09
Cobalt Blue
#030AA7
ΔE00 5.23
Royal Blue (survey)
#0504AA
ΔE00 5.49
Indigo (survey)
#380282
ΔE00 5.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3E1F9B #7C9B1F
analogous
#1F3E9B #3E1F9B #7C1F9B
triadic
#3E1F9B #9B3E1F #1F9B3E
tetradic
#3E1F9B #9B1F3E #7C9B1F #1F9B7C
square
#3E1F9B #9B1F3E #7C9B1F #1F9B7C
split-complementary
#3E1F9B #9B7C1F #3E9B1F
monochromatic
#150B35 #2A1568 #3E1F9B #5229CE #7957DD
Accessibility & contrast
On white
11.20
#3E1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#3E1F9B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3E1F9B
11.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3E1F9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3E1F9B | 1.00 | 11.20 | 1.87 | 11.20 |
| #FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003799
Tritanopia (blue-blind)
#03445D
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #3e1f9b; /* rgb */ color: rgb(62, 31, 155); /* oklch */ color: oklch(37.3% 0.184 284.6);
Tailwind
colors: {
custom: {
50: '#7f5fba',
500: '#3e1f9b',
950: '#000000',
},
}SCSS
$custom: #3e1f9b; $custom-light: #7f5fba; $custom-dark: #000000;
JSON
{
"hex": "#3e1f9b",
"rgb": {
"r": 62,
"g": 31,
"b": 155
},
"hsl": {
"h": 255,
"s": 66.667,
"l": 36.471
},
"oklch": {
"l": 0.37323,
"c": 0.18374,
"h": 284.6
},
"luminance": 0.04371
}Semantic roles & 50–950 ramp
primary
#3E1F9B
secondary
#A6C155
accent
#EA3EBF
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0512
muted
#7C7981