#3F2B8A#3F2B8A
#3F2B8A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.150 H 286.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).
Color values
| HEX | #3F2B8A |
|---|---|
| RGB | rgb(63, 43, 138) |
| HSL | hsl(253, 52%, 35%) |
| HSV | hsv(253, 69%, 54%) |
| CMYK | cmyk(54.3%, 68.8%, 0%, 45.9%) |
| CIE-LAB | lab(25.62, 35.06, -49.95) |
| CIE-LCH | lch(25.62, 61.02, 305.07°) |
| OKLab | oklab(37.39% 0.0422 -0.1434) |
| OKLCH | oklch(37.39% 0.15 286.4) |
| XYZ | xyz(7.4999, 4.6191, 24.5362) |
| Luminance | 0.0462 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.22
Blueberry
#464196
ΔE00 6.33
Royal
#0C1793
ΔE00 6.64
Indigo Blue
#3A18B1
ΔE00 6.76
Midnight Blue
#191970
ΔE00 7.01
Indigo (survey)
#380282
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F2B8A #768A2B
analogous
#2B468A #3F2B8A #6E2B8A
triadic
#3F2B8A #8A3F2B #2B8A3F
tetradic
#3F2B8A #8A2B46 #768A2B #2B8A6E
square
#3F2B8A #8A2B46 #768A2B #2B8A6E
split-complementary
#3F2B8A #8A6E2B #468A2B
monochromatic
#140E2D #2A1C5B #3F2B8A #543AB9 #7861CE
Accessibility & contrast
On white
10.92
#3F2B8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.92
#3F2B8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F2B8A
10.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F2B8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F2B8A | 1.00 | 10.92 | 1.92 | 10.92 |
| #FFFFFF | 10.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.92 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F8D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#214356
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #3f2b8a; /* rgb */ color: rgb(63, 43, 138); /* oklch */ color: oklch(37.4% 0.150 286.4);
Tailwind
colors: {
custom: {
50: '#7c66ad',
500: '#3f2b8a',
950: '#000000',
},
}SCSS
$custom: #3f2b8a; $custom-light: #7c66ad; $custom-dark: #000000;
JSON
{
"hex": "#3f2b8a",
"rgb": {
"r": 63,
"g": 43,
"b": 138
},
"hsl": {
"h": 252.632,
"s": 52.486,
"l": 35.49
},
"oklch": {
"l": 0.3739,
"c": 0.14951,
"h": 286.4
},
"luminance": 0.04619
}Semantic roles & 50–950 ramp
primary
#3F2B8A
secondary
#A2B45D
accent
#DC4CBE
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0610
muted
#7C7A7F