#3F2C98#3F2C98
#3F2C98 is a dark, vivid violet. Relative luminance 0.051; OKLCH L 38.8% C 0.166 H 283.5°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).
Color values
| HEX | #3F2C98 |
|---|---|
| RGB | rgb(63, 44, 152) |
| HSL | hsl(251, 55%, 38%) |
| HSV | hsv(251, 71%, 60%) |
| CMYK | cmyk(58.6%, 71.1%, 0%, 40.4%) |
| CIE-LAB | lab(27.09, 38.89, -56.19) |
| CIE-LCH | lch(27.09, 68.34, 304.69°) |
| OKLab | oklab(38.83% 0.0389 -0.1618) |
| OKLCH | oklch(38.83% 0.166 283.5) |
| XYZ | xyz(8.6163, 5.1246, 30.2348) |
| Luminance | 0.0512 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 5.09
Darkslateblue
#483D8B
ΔE00 5.74
Sapphire (survey)
#2138AB
ΔE00 5.82
Blueberry
#464196
ΔE00 6.04
Royal
#0C1793
ΔE00 6.34
Ocean Blue
#4F42B5
ΔE00 7.11
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F2C98 #85982C
analogous
#2C4F98 #3F2C98 #752C98
triadic
#3F2C98 #983F2C #2C983F
tetradic
#3F2C98 #982C4F #85982C #2C9875
square
#3F2C98 #982C4F #85982C #2C9875
split-complementary
#3F2C98 #98752C #4F982C
monochromatic
#181139 #2B1E69 #3F2C98 #533BC6 #7D6AD4
Accessibility & contrast
On white
10.37
#3F2C98 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#3F2C98 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F2C98
10.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F2C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F2C98 | 1.00 | 10.37 | 2.03 | 10.37 |
| #FFFFFF | 10.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00439B
Deuteranopia (green-blind)
#003C96
Tritanopia (blue-blind)
#0E495E
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #3f2c98; /* rgb */ color: rgb(63, 44, 152); /* oklch */ color: oklch(38.8% 0.166 283.5);
Tailwind
colors: {
custom: {
50: '#7e67b7',
500: '#3f2c98',
950: '#000000',
},
}SCSS
$custom: #3f2c98; $custom-light: #7e67b7; $custom-dark: #000000;
JSON
{
"hex": "#3f2c98",
"rgb": {
"r": 63,
"g": 44,
"b": 152
},
"hsl": {
"h": 250.556,
"s": 55.102,
"l": 38.431
},
"oklch": {
"l": 0.38828,
"c": 0.16637,
"h": 283.5
},
"luminance": 0.05125
}Semantic roles & 50–950 ramp
primary
#3F2C98
secondary
#ACBB65
accent
#DE49C4
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80