#3F158F#3F158F
#3F158F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.179 H 289.0°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).
Color values
| HEX | #3F158F |
|---|---|
| RGB | rgb(63, 21, 143) |
| HSL | hsl(261, 74%, 32%) |
| HSV | hsv(261, 85%, 56%) |
| CMYK | cmyk(55.9%, 85.3%, 0%, 43.9%) |
| CIE-LAB | lab(22.22, 47.56, -58.65) |
| CIE-LCH | lch(22.22, 75.51, 309.04°) |
| OKLab | oklab(35.14% 0.0582 -0.1687) |
| OKLCH | oklch(35.14% 0.179 289) |
| XYZ | xyz(7.2745, 3.5759, 26.2882) |
| Luminance | 0.0358 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.20
Indigo
#4B0082
ΔE00 3.86
Indigo Blue
#3A18B1
ΔE00 4.84
Royal
#0C1793
ΔE00 5.00
Cobalt Blue
#030AA7
ΔE00 5.52
Ultramarine
#2000B1
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F158F #658F15
analogous
#15288F #3F158F #7C158F
triadic
#3F158F #8F3F15 #158F3F
tetradic
#3F158F #8F1528 #658F15 #158F7C
square
#3F158F #8F1528 #658F15 #158F7C
split-complementary
#3F158F #8F7C15 #288F15
monochromatic
#100524 #270D5A #3F158F #571DC4 #753CE2
Accessibility & contrast
On white
12.24
#3F158F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.72
#3F158F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F158F
12.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F158F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F158F | 1.00 | 12.24 | 1.72 | 12.24 |
| #FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.72 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#1E3B54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #3f158f; /* rgb */ color: rgb(63, 21, 143); /* oklch */ color: oklch(35.1% 0.179 289.0);
Tailwind
colors: {
custom: {
50: '#7e5ab1',
500: '#3f158f',
950: '#000000',
},
}SCSS
$custom: #3f158f; $custom-light: #7e5ab1; $custom-dark: #000000;
JSON
{
"hex": "#3f158f",
"rgb": {
"r": 63,
"g": 21,
"b": 143
},
"hsl": {
"h": 260.656,
"s": 74.39,
"l": 32.157
},
"oklch": {
"l": 0.35142,
"c": 0.17851,
"h": 289
},
"luminance": 0.03576
}Semantic roles & 50–950 ramp
primary
#3F158F
secondary
#95C23E
accent
#F137B1
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980