#3A2A6E#3A2A6E
#3A2A6E is a dark, moderate violet. Relative luminance 0.037; OKLCH L 34.3% C 0.113 H 290.0°. Best body text is #FFFFFF at 12.10:1 contrast (WCAG AA passes).
Color values
| HEX | #3A2A6E |
|---|---|
| RGB | rgb(58, 42, 110) |
| HSL | hsl(254, 45%, 30%) |
| HSV | hsv(254, 62%, 43%) |
| CMYK | cmyk(47.3%, 61.8%, 0%, 56.9%) |
| CIE-LAB | lab(22.59, 25.73, -37.16) |
| CIE-LCH | lch(22.59, 45.20, 304.70°) |
| OKLab | oklab(34.34% 0.0386 -0.106) |
| OKLCH | oklch(34.34% 0.113 290) |
| XYZ | xyz(5.3866, 3.6811, 15.1755) |
| Luminance | 0.0368 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 6.54
Darkslateblue
#483D8B
ΔE00 6.64
Blueberry
#464196
ΔE00 8.66
Dark Indigo
#1F0954
ΔE00 8.74
Indigo (survey)
#380282
ΔE00 9.02
Royal Purple (survey)
#4B006E
ΔE00 9.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A2A6E #5E6E2A
analogous
#2A3C6E #3A2A6E #5C2A6E
triadic
#3A2A6E #6E3A2A #2A6E3A
tetradic
#3A2A6E #6E2A3C #5E6E2A #2A6E5C
square
#3A2A6E #6E2A3C #5E6E2A #2A6E5C
split-complementary
#3A2A6E #6E5C2A #3C6E2A
monochromatic
#0C0816 #231942 #3A2A6E #513B9A #6D55BE
Accessibility & contrast
On white
12.10
#3A2A6E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#3A2A6E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A2A6E
12.10:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A2A6E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A2A6E | 1.00 | 12.10 | 1.74 | 12.10 |
| #FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.10 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003770
Deuteranopia (green-blind)
#00346D
Tritanopia (blue-blind)
#2A3947
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #3a2a6e; /* rgb */ color: rgb(58, 42, 110); /* oklch */ color: oklch(34.3% 0.113 290.0);
Tailwind
colors: {
custom: {
50: '#756498',
500: '#3a2a6e',
950: '#000000',
},
}SCSS
$custom: #3a2a6e; $custom-light: #756498; $custom-dark: #000000;
JSON
{
"hex": "#3a2a6e",
"rgb": {
"r": 58,
"g": 42,
"b": 110
},
"hsl": {
"h": 254.118,
"s": 44.737,
"l": 29.804
},
"oklch": {
"l": 0.34344,
"c": 0.11284,
"h": 290
},
"luminance": 0.03681
}Semantic roles & 50–950 ramp
primary
#3A2A6E
secondary
#8EA054
accent
#D453B6
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#09050E
muted
#7B7A7E