#3F157C#3F157C
#3F157C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.157 H 294.5°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).
Color values
| HEX | #3F157C |
|---|---|
| RGB | rgb(63, 21, 124) |
| HSL | hsl(264, 71%, 28%) |
| HSV | hsv(264, 83%, 49%) |
| CMYK | cmyk(49.2%, 83.1%, 0%, 51.4%) |
| CIE-LAB | lab(20.24, 42.40, -49.95) |
| CIE-LCH | lch(20.24, 65.52, 310.33°) |
| OKLab | oklab(33.18% 0.0652 -0.1433) |
| OKLCH | oklch(33.18% 0.157 294.5) |
| XYZ | xyz(5.9552, 3.0482, 19.3395) |
| Luminance | 0.0305 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.94
Indigo
#4B0082
ΔE00 3.13
Royal Purple (survey)
#4B006E
ΔE00 4.59
Midnight Blue
#191970
ΔE00 6.06
Royal
#0C1793
ΔE00 6.56
Darkblue
#00008B
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F157C #527C15
analogous
#151E7C #3F157C #72157C
triadic
#3F157C #7C3F15 #157C3F
tetradic
#3F157C #7C151E #527C15 #157C72
square
#3F157C #7C151E #527C15 #157C72
split-complementary
#3F157C #7C7215 #1E7C15
monochromatic
#0D041A #240C48 #3F157C #5A1EB0 #7630DC
Accessibility & contrast
On white
13.05
#3F157C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3F157C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F157C
13.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F157C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F157C | 1.00 | 13.05 | 1.61 | 13.05 |
| #FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.05 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#2D3349
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3f157c; /* rgb */ color: rgb(63, 21, 124); /* oklch */ color: oklch(33.2% 0.157 294.5);
Tailwind
colors: {
custom: {
50: '#7b59a3',
500: '#3f157c',
950: '#000000',
},
}SCSS
$custom: #3f157c; $custom-light: #7b59a3; $custom-dark: #000000;
JSON
{
"hex": "#3f157c",
"rgb": {
"r": 63,
"g": 21,
"b": 124
},
"hsl": {
"h": 264.466,
"s": 71.034,
"l": 28.431
},
"oklch": {
"l": 0.33181,
"c": 0.15746,
"h": 294.5
},
"luminance": 0.03048
}Semantic roles & 50–950 ramp
primary
#3F157C
secondary
#81B13C
accent
#EE3AA4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F