#3A226E#3A226E
#3A226E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.0% C 0.125 H 292.8°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).
Color values
| HEX | #3A226E |
|---|---|
| RGB | rgb(58, 34, 110) |
| HSL | hsl(259, 53%, 28%) |
| HSV | hsv(259, 69%, 43%) |
| CMYK | cmyk(47.3%, 69.1%, 0%, 56.9%) |
| CIE-LAB | lab(20.71, 30.74, -40.21) |
| CIE-LCH | lch(20.71, 50.61, 307.39°) |
| OKLab | oklab(32.98% 0.0483 -0.115) |
| OKLCH | oklch(32.98% 0.125 292.8) |
| XYZ | xyz(5.1306, 3.1692, 15.0902) |
| Luminance | 0.0317 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.47
Indigo (survey)
#380282
ΔE00 6.85
Royal Purple (survey)
#4B006E
ΔE00 6.87
Indigo
#4B0082
ΔE00 7.06
Dark Indigo
#1F0954
ΔE00 7.08
Darkslateblue
#483D8B
ΔE00 8.20
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A226E #566E22
analogous
#22306E #3A226E #60226E
triadic
#3A226E #6E3A22 #226E3A
tetradic
#3A226E #6E2230 #566E22 #226E60
square
#3A226E #6E2230 #566E22 #226E60
split-complementary
#3A226E #6E6022 #306E22
monochromatic
#0C0717 #21143F #3A226E #53309D #6E45C5
Accessibility & contrast
On white
12.85
#3A226E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#3A226E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A226E
12.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A226E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A226E | 1.00 | 12.85 | 1.63 | 12.85 |
| #FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003370
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#2B3444
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #3a226e; /* rgb */ color: rgb(58, 34, 110); /* oklch */ color: oklch(33.0% 0.125 292.8);
Tailwind
colors: {
custom: {
50: '#755f98',
500: '#3a226e',
950: '#000000',
},
}SCSS
$custom: #3a226e; $custom-light: #755f98; $custom-dark: #000000;
JSON
{
"hex": "#3a226e",
"rgb": {
"r": 58,
"g": 34,
"b": 110
},
"hsl": {
"h": 258.947,
"s": 52.778,
"l": 28.235
},
"oklch": {
"l": 0.32977,
"c": 0.12472,
"h": 292.8
},
"luminance": 0.03169
}Semantic roles & 50–950 ramp
primary
#3A226E
secondary
#86A14A
accent
#DC4CAF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E