#3A187E#3A187E
#3A187E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.157 H 290.2°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).
Color values
| HEX | #3A187E |
|---|---|
| RGB | rgb(58, 24, 126) |
| HSL | hsl(260, 68%, 29%) |
| HSV | hsv(260, 81%, 49%) |
| CMYK | cmyk(54%, 81%, 0%, 50.6%) |
| CIE-LAB | lab(20.28, 40.89, -51.17) |
| CIE-LCH | lch(20.28, 65.50, 308.63°) |
| OKLab | oklab(33.13% 0.0541 -0.1471) |
| OKLCH | oklch(33.13% 0.157 290.2) |
| XYZ | xyz(5.8364, 3.0589, 20.0175) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.12
Indigo
#4B0082
ΔE00 4.09
Midnight Blue
#191970
ΔE00 5.16
Royal
#0C1793
ΔE00 5.58
Royal Purple (survey)
#4B006E
ΔE00 5.72
Darkblue
#00008B
ΔE00 6.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A187E #5C7E18
analogous
#18297E #3A187E #6D187E
triadic
#3A187E #7E3A18 #187E3A
tetradic
#3A187E #7E1829 #5C7E18 #187E6D
square
#3A187E #7E1829 #5C7E18 #187E6D
split-complementary
#3A187E #7E6D18 #297E18
monochromatic
#0C051A #220E4B #3A187E #5222B1 #6D37D9
Accessibility & contrast
On white
13.03
#3A187E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#3A187E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A187E
13.03:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A187E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A187E | 1.00 | 13.03 | 1.61 | 13.03 |
| #FFFFFF | 13.03 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.03 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003381
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#21354B
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #3a187e; /* rgb */ color: rgb(58, 24, 126); /* oklch */ color: oklch(33.1% 0.157 290.2);
Tailwind
colors: {
custom: {
50: '#795aa4',
500: '#3a187e',
950: '#000000',
},
}SCSS
$custom: #3a187e; $custom-light: #795aa4; $custom-dark: #000000;
JSON
{
"hex": "#3a187e",
"rgb": {
"r": 58,
"g": 24,
"b": 126
},
"hsl": {
"h": 260,
"s": 68,
"l": 29.412
},
"oklch": {
"l": 0.3313,
"c": 0.15674,
"h": 290.2
},
"luminance": 0.03059
}Semantic roles & 50–950 ramp
primary
#3A187E
secondary
#8CB23F
accent
#EB3DB1
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F