#3A238B#3A238B
#3A238B is a dark, vivid violet. Relative luminance 0.040; OKLCH L 35.8% C 0.161 H 285.0°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).
Color values
| HEX | #3A238B |
|---|---|
| RGB | rgb(58, 35, 139) |
| HSL | hsl(253, 60%, 34%) |
| HSV | hsv(253, 75%, 55%) |
| CMYK | cmyk(58.3%, 74.8%, 0%, 45.5%) |
| CIE-LAB | lab(23.56, 39.13, -53.97) |
| CIE-LCH | lch(23.56, 66.66, 305.94°) |
| OKLab | oklab(35.83% 0.0417 -0.1554) |
| OKLCH | oklch(35.83% 0.161 285) |
| XYZ | xyz(7.0047, 3.9653, 24.8174) |
| Luminance | 0.0397 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.92
Indigo (survey)
#380282
ΔE00 5.42
Indigo Blue
#3A18B1
ΔE00 5.66
Midnight Blue
#191970
ΔE00 5.97
Indigo
#4B0082
ΔE00 6.20
Cobalt Blue
#030AA7
ΔE00 6.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A238B #748B23
analogous
#23408B #3A238B #6E238B
triadic
#3A238B #8B3A23 #238B3A
tetradic
#3A238B #8B2340 #748B23 #238B6E
square
#3A238B #8B2340 #748B23 #238B6E
split-complementary
#3A238B #8B6E23 #408B23
monochromatic
#110A29 #26175A #3A238B #4E2FBC #7154D4
Accessibility & contrast
On white
11.71
#3A238B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#3A238B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A238B
11.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A238B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A238B | 1.00 | 11.71 | 1.79 | 11.71 |
| #FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#113F55
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #3a238b; /* rgb */ color: rgb(58, 35, 139); /* oklch */ color: oklch(35.8% 0.161 285.0);
Tailwind
colors: {
custom: {
50: '#7a60ae',
500: '#3a238b',
950: '#000000',
},
}SCSS
$custom: #3a238b; $custom-light: #7a60ae; $custom-dark: #000000;
JSON
{
"hex": "#3a238b",
"rgb": {
"r": 58,
"g": 35,
"b": 139
},
"hsl": {
"h": 253.269,
"s": 59.77,
"l": 34.118
},
"oklch": {
"l": 0.35825,
"c": 0.16088,
"h": 285
},
"luminance": 0.03966
}Semantic roles & 50–950 ramp
primary
#3A238B
secondary
#A1B852
accent
#E345C0
background
#F7F5FA
surface
#EEEAF4
border
#C9C6CE
text
#0A0510
muted
#7C797F