#3A258F#3A258F
#3A258F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.164 H 283.8°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).
Color values
| HEX | #3A258F |
|---|---|
| RGB | rgb(58, 37, 143) |
| HSL | hsl(252, 59%, 35%) |
| HSV | hsv(252, 74%, 56%) |
| CMYK | cmyk(59.4%, 74.1%, 0%, 43.9%) |
| CIE-LAB | lab(24.34, 39.27, -55.17) |
| CIE-LCH | lch(24.34, 67.72, 305.44°) |
| OKLab | oklab(36.5% 0.0392 -0.1589) |
| OKLCH | oklch(36.5% 0.164 283.8) |
| XYZ | xyz(7.3629, 4.2054, 26.4050) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.95
Indigo Blue
#3A18B1
ΔE00 5.25
Indigo (survey)
#380282
ΔE00 5.99
Midnight Blue
#191970
ΔE00 6.45
Cobalt Blue
#030AA7
ΔE00 6.47
Indigo
#4B0082
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A258F #7A8F25
analogous
#25458F #3A258F #6F258F
triadic
#3A258F #8F3A25 #258F3A
tetradic
#3A258F #8F2545 #7A8F25 #258F6F
square
#3A258F #8F2545 #7A8F25 #258F6F
split-complementary
#3A258F #8F6F25 #458F25
monochromatic
#130C2E #26185E #3A258F #4E32C0 #725AD4
Accessibility & contrast
On white
11.41
#3A258F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#3A258F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A258F
11.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A258F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A258F | 1.00 | 11.41 | 1.84 | 11.41 |
| #FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00368D
Tritanopia (blue-blind)
#094258
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #3a258f; /* rgb */ color: rgb(58, 37, 143); /* oklch */ color: oklch(36.5% 0.164 283.8);
Tailwind
colors: {
custom: {
50: '#7b62b1',
500: '#3a258f',
950: '#000000',
},
}SCSS
$custom: #3a258f; $custom-light: #7b62b1; $custom-dark: #000000;
JSON
{
"hex": "#3a258f",
"rgb": {
"r": 58,
"g": 37,
"b": 143
},
"hsl": {
"h": 251.887,
"s": 58.889,
"l": 35.294
},
"oklch": {
"l": 0.36497,
"c": 0.16367,
"h": 283.8
},
"luminance": 0.04206
}Semantic roles & 50–950 ramp
primary
#3A258F
secondary
#A6B957
accent
#E246C3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980