#3F177F#3F177F
#3F177F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.7% C 0.159 H 293.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).
Color values
| HEX | #3F177F |
|---|---|
| RGB | rgb(63, 23, 127) |
| HSL | hsl(263, 69%, 29%) |
| HSV | hsv(263, 82%, 50%) |
| CMYK | cmyk(50.4%, 81.9%, 0%, 50.2%) |
| CIE-LAB | lab(20.83, 42.35, -50.87) |
| CIE-LCH | lch(20.83, 66.20, 309.78°) |
| OKLab | oklab(33.69% 0.0627 -0.146) |
| OKLCH | oklch(33.69% 0.159 293.2) |
| XYZ | xyz(6.1860, 3.2017, 20.3666) |
| Luminance | 0.0320 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.06
Indigo
#4B0082
ΔE00 3.35
Royal Purple (survey)
#4B006E
ΔE00 5.10
Midnight Blue
#191970
ΔE00 6.02
Royal
#0C1793
ΔE00 6.20
Darkblue
#00008B
ΔE00 6.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F177F #577F17
analogous
#17237F #3F177F #73177F
triadic
#3F177F #7F3F17 #177F3F
tetradic
#3F177F #7F1723 #577F17 #177F73
square
#3F177F #7F1723 #577F17 #177F73
split-complementary
#3F177F #7F7317 #237F17
monochromatic
#0D051A #250E4B #3F177F #5920B3 #7536DB
Accessibility & contrast
On white
12.80
#3F177F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#3F177F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F177F
12.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F177F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F177F | 1.00 | 12.80 | 1.64 | 12.80 |
| #FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#2B354B
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3f177f; /* rgb */ color: rgb(63, 23, 127); /* oklch */ color: oklch(33.7% 0.159 293.2);
Tailwind
colors: {
custom: {
50: '#7c5aa5',
500: '#3f177f',
950: '#000000',
},
}SCSS
$custom: #3f177f; $custom-light: #7c5aa5; $custom-dark: #000000;
JSON
{
"hex": "#3f177f",
"rgb": {
"r": 63,
"g": 23,
"b": 127
},
"hsl": {
"h": 263.077,
"s": 69.333,
"l": 29.412
},
"oklch": {
"l": 0.33687,
"c": 0.15893,
"h": 293.2
},
"luminance": 0.03202
}Semantic roles & 50–950 ramp
primary
#3F177F
secondary
#86B43E
accent
#EC3CA8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F