#3A298E#3A298E
#3A298E is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.158 H 283.2°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).
Color values
| HEX | #3A298E |
|---|---|
| RGB | rgb(58, 41, 142) |
| HSL | hsl(250, 55%, 36%) |
| HSV | hsv(250, 71%, 56%) |
| CMYK | cmyk(59.2%, 71.1%, 0%, 44.3%) |
| CIE-LAB | lab(25.07, 36.66, -53.35) |
| CIE-LCH | lch(25.07, 64.73, 304.49°) |
| OKLab | oklab(36.99% 0.036 -0.1536) |
| OKLCH | oklch(36.99% 0.158 283.2) |
| XYZ | xyz(7.4188, 4.4379, 26.0516) |
| Luminance | 0.0444 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 5.57
Indigo Blue
#3A18B1
ΔE00 5.90
Darkslateblue
#483D8B
ΔE00 6.00
Midnight Blue
#191970
ΔE00 6.64
Sapphire (survey)
#2138AB
ΔE00 6.69
Blueberry
#464196
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A298E #7D8E29
analogous
#294A8E #3A298E #6C298E
triadic
#3A298E #8E3A29 #298E3A
tetradic
#3A298E #8E294A #7D8E29 #298E6C
square
#3A298E #8E294A #7D8E29 #298E6C
split-complementary
#3A298E #8E6C29 #4A8E29
monochromatic
#130E2F #271B5F #3A298E #4D37BD #7360D1
Accessibility & contrast
On white
11.13
#3A298E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.89
#3A298E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A298E
11.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A298E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A298E | 1.00 | 11.13 | 1.89 | 11.13 |
| #FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.89 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.13 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#0A4458
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #3a298e; /* rgb */ color: rgb(58, 41, 142); /* oklch */ color: oklch(37.0% 0.158 283.2);
Tailwind
colors: {
custom: {
50: '#7a64b0',
500: '#3a298e',
950: '#000000',
},
}SCSS
$custom: #3a298e; $custom-light: #7a64b0; $custom-dark: #000000;
JSON
{
"hex": "#3a298e",
"rgb": {
"r": 58,
"g": 41,
"b": 142
},
"hsl": {
"h": 250.099,
"s": 55.191,
"l": 35.882
},
"oklch": {
"l": 0.36988,
"c": 0.15777,
"h": 283.2
},
"luminance": 0.04438
}Semantic roles & 50–950 ramp
primary
#3A298E
secondary
#A8B75C
accent
#DF49C5
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0511
muted
#7C7A80