#3D2A7E#3D2A7E
#3D2A7E is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.0% C 0.135 H 288.1°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).
Color values
| HEX | #3D2A7E |
|---|---|
| RGB | rgb(61, 42, 126) |
| HSL | hsl(254, 50%, 33%) |
| HSV | hsv(254, 67%, 49%) |
| CMYK | cmyk(51.6%, 66.7%, 0%, 50.6%) |
| CIE-LAB | lab(24.17, 31.48, -44.79) |
| CIE-LCH | lch(24.17, 54.75, 305.11°) |
| OKLab | oklab(35.98% 0.0418 -0.1283) |
| OKLCH | oklch(35.98% 0.135 288.1) |
| XYZ | xyz(6.5172, 4.1541, 20.1930) |
| Luminance | 0.0415 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Darkslateblue
#483D8B
ΔE00 5.50
Midnight Blue
#191970
ΔE00 6.20
Blueberry
#464196
ΔE00 7.12
Royal
#0C1793
ΔE00 7.40
Indigo (survey)
#380282
ΔE00 7.42
Indigo
#4B0082
ΔE00 7.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3D2A7E #6B7E2A
analogous
#2A417E #3D2A7E #672A7E
triadic
#3D2A7E #7E3D2A #2A7E3D
tetradic
#3D2A7E #7E2A41 #6B7E2A #2A7E67
square
#3D2A7E #7E2A41 #6B7E2A #2A7E67
split-complementary
#3D2A7E #7E672A #417E2A
monochromatic
#110B22 #271B50 #3D2A7E #5339AC #735AC8
Accessibility & contrast
On white
11.47
#3D2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.83
#3D2A7E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3D2A7E
11.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3D2A7E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3D2A7E | 1.00 | 11.47 | 1.83 | 11.47 |
| #FFFFFF | 11.47 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.83 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.47 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#263E50
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3d2a7e; /* rgb */ color: rgb(61, 42, 126); /* oklch */ color: oklch(36.0% 0.135 288.1);
Tailwind
colors: {
custom: {
50: '#7965a4',
500: '#3d2a7e',
950: '#000000',
},
}SCSS
$custom: #3d2a7e; $custom-light: #7965a4; $custom-dark: #000000;
JSON
{
"hex": "#3d2a7e",
"rgb": {
"r": 61,
"g": 42,
"b": 126
},
"hsl": {
"h": 253.571,
"s": 50,
"l": 32.941
},
"oklch": {
"l": 0.35979,
"c": 0.135,
"h": 288.1
},
"luminance": 0.04154
}Semantic roles & 50–950 ramp
primary
#3D2A7E
secondary
#9AAE56
accent
#DA4EBA
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A050F
muted
#7C7A7F