#3F178F#3F178F
#3F178F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.177 H 288.8°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).
Color values
| HEX | #3F178F |
|---|---|
| RGB | rgb(63, 23, 143) |
| HSL | hsl(260, 72%, 33%) |
| HSV | hsv(260, 84%, 56%) |
| CMYK | cmyk(55.9%, 83.9%, 0%, 43.9%) |
| CIE-LAB | lab(22.49, 46.77, -58.20) |
| CIE-LCH | lch(22.49, 74.66, 308.78°) |
| OKLab | oklab(35.33% 0.057 -0.1675) |
| OKLCH | oklch(35.33% 0.177 288.8) |
| XYZ | xyz(7.3128, 3.6524, 26.3009) |
| Luminance | 0.0365 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.44
Indigo
#4B0082
ΔE00 4.07
Indigo Blue
#3A18B1
ΔE00 4.80
Royal
#0C1793
ΔE00 4.98
Cobalt Blue
#030AA7
ΔE00 5.60
Ultramarine
#2000B1
ΔE00 5.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F178F #678F17
analogous
#172B8F #3F178F #7B178F
triadic
#3F178F #8F3F17 #178F3F
tetradic
#3F178F #8F172B #678F17 #178F7B
square
#3F178F #8F172B #678F17 #178F7B
split-complementary
#3F178F #8F7B17 #2B8F17
monochromatic
#110626 #280F5A #3F178F #561FC4 #7640E0
Accessibility & contrast
On white
12.13
#3F178F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.73
#3F178F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F178F
12.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F178F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F178F | 1.00 | 12.13 | 1.73 | 12.13 |
| #FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.73 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003892
Deuteranopia (green-blind)
#00338D
Tritanopia (blue-blind)
#1E3C54
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3f178f; /* rgb */ color: rgb(63, 23, 143); /* oklch */ color: oklch(35.3% 0.177 288.8);
Tailwind
colors: {
custom: {
50: '#7e5bb1',
500: '#3f178f',
950: '#000000',
},
}SCSS
$custom: #3f178f; $custom-light: #7e5bb1; $custom-dark: #000000;
JSON
{
"hex": "#3f178f",
"rgb": {
"r": 63,
"g": 23,
"b": 143
},
"hsl": {
"h": 260,
"s": 72.289,
"l": 32.549
},
"oklch": {
"l": 0.35328,
"c": 0.17692,
"h": 288.8
},
"luminance": 0.03653
}Semantic roles & 50–950 ramp
primary
#3F178F
secondary
#96C141
accent
#EF39B2
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980