#3A187F#3A187F
#3A187F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.158 H 289.9°. Best body text is #FFFFFF at 12.99:1 contrast (WCAG AA passes).
Color values
| HEX | #3A187F |
|---|---|
| RGB | rgb(58, 24, 127) |
| HSL | hsl(260, 68%, 30%) |
| HSV | hsv(260, 81%, 50%) |
| CMYK | cmyk(54.3%, 81.1%, 0%, 50.2%) |
| CIE-LAB | lab(20.38, 41.18, -51.64) |
| CIE-LCH | lch(20.38, 66.05, 308.57°) |
| OKLab | oklab(33.23% 0.0538 -0.1485) |
| OKLCH | oklch(33.23% 0.158 289.9) |
| XYZ | xyz(5.9012, 3.0848, 20.3591) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.07
Indigo
#4B0082
ΔE00 4.08
Midnight Blue
#191970
ΔE00 5.20
Royal
#0C1793
ΔE00 5.47
Royal Purple (survey)
#4B006E
ΔE00 5.81
Darkblue
#00008B
ΔE00 6.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A187F #5D7F18
analogous
#18297F #3A187F #6E187F
triadic
#3A187F #7F3A18 #187F3A
tetradic
#3A187F #7F1829 #5D7F18 #187F6E
square
#3A187F #7F1829 #5D7F18 #187F6E
split-complementary
#3A187F #7F6E18 #297F18
monochromatic
#0C051A #220E4C #3A187F #5222B2 #6D38D9
Accessibility & contrast
On white
12.99
#3A187F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#3A187F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A187F
12.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A187F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A187F | 1.00 | 12.99 | 1.62 | 12.99 |
| #FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#20364B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3a187f; /* rgb */ color: rgb(58, 24, 127); /* oklch */ color: oklch(33.2% 0.158 289.9);
Tailwind
colors: {
custom: {
50: '#795aa5',
500: '#3a187f',
950: '#000000',
},
}SCSS
$custom: #3a187f; $custom-light: #795aa5; $custom-dark: #000000;
JSON
{
"hex": "#3a187f",
"rgb": {
"r": 58,
"g": 24,
"b": 127
},
"hsl": {
"h": 259.806,
"s": 68.212,
"l": 29.608
},
"oklch": {
"l": 0.33232,
"c": 0.1579,
"h": 289.9
},
"luminance": 0.03085
}Semantic roles & 50–950 ramp
primary
#3A187F
secondary
#8DB33F
accent
#EB3DB2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F