#3F177B#3F177B
#3F177B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.154 H 294.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #3F177B |
|---|---|
| RGB | rgb(63, 23, 123) |
| HSL | hsl(264, 68%, 29%) |
| HSV | hsv(264, 81%, 48%) |
| CMYK | cmyk(48.8%, 81.3%, 0%, 51.8%) |
| CIE-LAB | lab(20.44, 41.26, -48.98) |
| CIE-LCH | lch(20.44, 64.04, 310.11°) |
| OKLab | oklab(33.29% 0.064 -0.1405) |
| OKLCH | oklch(33.29% 0.154 294.5) |
| XYZ | xyz(5.9305, 3.0994, 19.0208) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.33
Indigo
#4B0082
ΔE00 3.45
Royal Purple (survey)
#4B006E
ΔE00 4.70
Midnight Blue
#191970
ΔE00 5.95
Royal
#0C1793
ΔE00 6.68
Navy
#000080
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F177B #537B17
analogous
#17217B #3F177B #71177B
triadic
#3F177B #7B3F17 #177B3F
tetradic
#3F177B #7B1721 #537B17 #177B71
square
#3F177B #7B1721 #537B17 #177B71
split-complementary
#3F177B #7B7117 #217B17
monochromatic
#0D051A #250D47 #3F177B #5921AF #7633D9
Accessibility & contrast
On white
12.96
#3F177B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3F177B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F177B
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F177B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F177B | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#2D3349
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3f177b; /* rgb */ color: rgb(63, 23, 123); /* oklch */ color: oklch(33.3% 0.154 294.5);
Tailwind
colors: {
custom: {
50: '#7b59a2',
500: '#3f177b',
950: '#000000',
},
}SCSS
$custom: #3f177b; $custom-light: #7b59a2; $custom-dark: #000000;
JSON
{
"hex": "#3f177b",
"rgb": {
"r": 63,
"g": 23,
"b": 123
},
"hsl": {
"h": 264,
"s": 68.493,
"l": 28.627
},
"oklch": {
"l": 0.33291,
"c": 0.15438,
"h": 294.5
},
"luminance": 0.031
}Semantic roles & 50–950 ramp
primary
#3F177B
secondary
#82B03E
accent
#EB3CA5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F