#3A229F#3A229F
#3A229F is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.7% C 0.186 H 281.5°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).
Color values
| HEX | #3A229F |
|---|---|
| RGB | rgb(58, 34, 159) |
| HSL | hsl(252, 65%, 38%) |
| HSV | hsv(252, 79%, 62%) |
| CMYK | cmyk(63.5%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(25.40, 45.78, -63.26) |
| CIE-LCH | lch(25.40, 78.09, 305.89°) |
| OKLab | oklab(37.73% 0.0372 -0.1825) |
| OKLCH | oklch(37.73% 0.186 281.5) |
| XYZ | xyz(8.5730, 4.5462, 33.2199) |
| Luminance | 0.0455 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.83
Royal
#0C1793
ΔE00 4.79
Ultramarine
#2000B1
ΔE00 5.04
Cobalt Blue
#030AA7
ΔE00 5.10
Royal Blue (survey)
#0504AA
ΔE00 5.41
True Blue
#010FCC
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A229F #879F22
analogous
#22489F #3A229F #78229F
triadic
#3A229F #9F3A22 #229F3A
tetradic
#3A229F #9F2248 #879F22 #229F78
square
#3A229F #9F2248 #879F22 #229F78
split-complementary
#3A229F #9F7822 #489F22
monochromatic
#150C3A #28176D #3A229F #4C2DD1 #775FDD
Accessibility & contrast
On white
11.00
#3A229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#3A229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A229F
11.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A229F | 1.00 | 11.00 | 1.91 | 11.00 |
| #FFFFFF | 11.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00389D
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #3a229f; /* rgb */ color: rgb(58, 34, 159); /* oklch */ color: oklch(37.7% 0.186 281.5);
Tailwind
colors: {
custom: {
50: '#7e61bd',
500: '#3a229f',
950: '#000000',
},
}SCSS
$custom: #3a229f; $custom-light: #7e61bd; $custom-dark: #000000;
JSON
{
"hex": "#3a229f",
"rgb": {
"r": 58,
"g": 34,
"b": 159
},
"hsl": {
"h": 251.52,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.37732,
"c": 0.18626,
"h": 281.5
},
"luminance": 0.04547
}Semantic roles & 50–950 ramp
primary
#3A229F
secondary
#AEC15B
accent
#E840C8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981