#3A258A#3A258A
#3A258A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.0% C 0.157 H 284.8°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).
Color values
| HEX | #3A258A |
|---|---|
| RGB | rgb(58, 37, 138) |
| HSL | hsl(252, 58%, 34%) |
| HSV | hsv(252, 73%, 54%) |
| CMYK | cmyk(58%, 73.2%, 0%, 45.9%) |
| CIE-LAB | lab(23.86, 37.70, -52.85) |
| CIE-LCH | lch(23.86, 64.92, 305.50°) |
| OKLab | oklab(36.01% 0.0403 -0.1521) |
| OKLCH | oklch(36.01% 0.157 284.8) |
| XYZ | xyz(6.9925, 4.0572, 24.4545) |
| Luminance | 0.0406 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 5.20
Indigo (survey)
#380282
ΔE00 5.87
Midnight Blue
#191970
ΔE00 5.97
Indigo Blue
#3A18B1
ΔE00 5.99
Indigo
#4B0082
ΔE00 6.60
Darkslateblue
#483D8B
ΔE00 6.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A258A #758A25
analogous
#25438A #3A258A #6D258A
triadic
#3A258A #8A3A25 #258A3A
tetradic
#3A258A #8A2543 #758A25 #258A6D
square
#3A258A #8A2543 #758A25 #258A6D
split-complementary
#3A258A #8A6D25 #438A25
monochromatic
#110B29 #26185A #3A258A #4E32BA #7157D2
Accessibility & contrast
On white
11.59
#3A258A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.81
#3A258A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A258A
11.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A258A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A258A | 1.00 | 11.59 | 1.81 | 11.59 |
| #FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.81 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003C8D
Deuteranopia (green-blind)
#003688
Tritanopia (blue-blind)
#124055
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #3a258a; /* rgb */ color: rgb(58, 37, 138); /* oklch */ color: oklch(36.0% 0.157 284.8);
Tailwind
colors: {
custom: {
50: '#7a62ad',
500: '#3a258a',
950: '#000000',
},
}SCSS
$custom: #3a258a; $custom-light: #7a62ad; $custom-dark: #000000;
JSON
{
"hex": "#3a258a",
"rgb": {
"r": 58,
"g": 37,
"b": 138
},
"hsl": {
"h": 252.475,
"s": 57.714,
"l": 34.314
},
"oklch": {
"l": 0.36011,
"c": 0.15734,
"h": 284.8
},
"luminance": 0.04058
}Semantic roles & 50–950 ramp
primary
#3A258A
secondary
#A2B754
accent
#E147C1
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F