#3F2882#3F2882
#3F2882 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.2% C 0.143 H 289.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).
Color values
| HEX | #3F2882 |
|---|---|
| RGB | rgb(63, 40, 130) |
| HSL | hsl(255, 53%, 33%) |
| HSV | hsv(255, 69%, 51%) |
| CMYK | cmyk(51.5%, 69.2%, 0%, 49%) |
| CIE-LAB | lab(24.28, 34.34, -47.13) |
| CIE-LCH | lch(24.28, 58.31, 306.07°) |
| OKLab | oklab(36.21% 0.0464 -0.1352) |
| OKLCH | oklch(36.21% 0.143 289) |
| XYZ | xyz(6.8368, 4.1858, 21.5625) |
| Luminance | 0.0419 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.91
Midnight Blue
#191970
ΔE00 6.32
Indigo (survey)
#380282
ΔE00 6.65
Indigo
#4B0082
ΔE00 6.83
Royal
#0C1793
ΔE00 6.89
Blueberry
#464196
ΔE00 7.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3F2882 #6B8228
analogous
#283E82 #3F2882 #6C2882
triadic
#3F2882 #823F28 #28823F
tetradic
#3F2882 #82283E #6B8228 #28826C
square
#3F2882 #82283E #6B8228 #28826C
split-complementary
#3F2882 #826C28 #3E8228
monochromatic
#120B24 #281A53 #3F2882 #5636B1 #7659CC
Accessibility & contrast
On white
11.43
#3F2882 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3F2882 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3F2882
11.43:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3F2882 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3F2882 | 1.00 | 11.43 | 1.84 | 11.43 |
| #FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.43 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C85
Deuteranopia (green-blind)
#003780
Tritanopia (blue-blind)
#283E51
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3f2882; /* rgb */ color: rgb(63, 40, 130); /* oklch */ color: oklch(36.2% 0.143 289.0);
Tailwind
colors: {
custom: {
50: '#7b64a7',
500: '#3f2882',
950: '#000000',
},
}SCSS
$custom: #3f2882; $custom-light: #7b64a7; $custom-dark: #000000;
JSON
{
"hex": "#3f2882",
"rgb": {
"r": 63,
"g": 40,
"b": 130
},
"hsl": {
"h": 255.333,
"s": 52.941,
"l": 33.333
},
"oklch": {
"l": 0.36208,
"c": 0.14293,
"h": 289
},
"luminance": 0.04186
}Semantic roles & 50–950 ramp
primary
#3F2882
secondary
#99B155
accent
#DC4BB7
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F