#3A2B79#3A2B79
#3A2B79 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.4% C 0.127 H 286.9°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).
Color values
| HEX | #3A2B79 |
|---|---|
| RGB | rgb(58, 43, 121) |
| HSL | hsl(252, 48%, 32%) |
| HSV | hsv(252, 64%, 47%) |
| CMYK | cmyk(52.1%, 64.5%, 0%, 52.5%) |
| CIE-LAB | lab(23.70, 28.63, -42.41) |
| CIE-LCH | lch(23.70, 51.17, 304.02°) |
| OKLab | oklab(35.43% 0.0368 -0.1215) |
| OKLCH | oklch(35.43% 0.127 286.9) |
| XYZ | xyz(6.0590, 4.0075, 18.5397) |
| Luminance | 0.0401 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.52
Midnight Blue
#191970
ΔE00 6.02
Blueberry
#464196
ΔE00 7.26
Royal
#0C1793
ΔE00 7.93
Indigo (survey)
#380282
ΔE00 8.14
Indigo
#4B0082
ΔE00 8.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A2B79 #6A792B
analogous
#2B4379 #3A2B79 #612B79
triadic
#3A2B79 #793A2B #2B793A
tetradic
#3A2B79 #792B43 #6A792B #2B7961
square
#3A2B79 #792B43 #6A792B #2B7961
split-complementary
#3A2B79 #79612B #43792B
monochromatic
#0F0B1F #241B4C #3A2B79 #503BA6 #6E5AC4
Accessibility & contrast
On white
11.66
#3A2B79 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#3A2B79 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A2B79
11.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A2B79 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A2B79 | 1.00 | 11.66 | 1.80 | 11.66 |
| #FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003A7C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#233D4D
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3a2b79; /* rgb */ color: rgb(58, 43, 121); /* oklch */ color: oklch(35.4% 0.127 286.9);
Tailwind
colors: {
custom: {
50: '#7665a0',
500: '#3a2b79',
950: '#000000',
},
}SCSS
$custom: #3a2b79; $custom-light: #7665a0; $custom-dark: #000000;
JSON
{
"hex": "#3a2b79",
"rgb": {
"r": 58,
"g": 43,
"b": 121
},
"hsl": {
"h": 251.538,
"s": 47.561,
"l": 32.157
},
"oklch": {
"l": 0.35429,
"c": 0.12692,
"h": 286.9
},
"luminance": 0.04008
}Semantic roles & 50–950 ramp
primary
#3A2B79
secondary
#9AAA56
accent
#D751BD
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050F
muted
#7B7A7E