#3A187C#3A187C
#3A187C is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.154 H 290.8°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).
Color values
| HEX | #3A187C |
|---|---|
| RGB | rgb(58, 24, 124) |
| HSL | hsl(260, 68%, 29%) |
| HSV | hsv(260, 81%, 49%) |
| CMYK | cmyk(53.2%, 80.6%, 0%, 51.4%) |
| CIE-LAB | lab(20.08, 40.31, -50.24) |
| CIE-LCH | lch(20.08, 64.41, 308.75°) |
| OKLab | oklab(32.93% 0.0547 -0.1444) |
| OKLCH | oklch(32.93% 0.154 290.8) |
| XYZ | xyz(5.7086, 3.0078, 19.3446) |
| Luminance | 0.0301 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.23
Indigo
#4B0082
ΔE00 4.13
Midnight Blue
#191970
ΔE00 5.09
Royal Purple (survey)
#4B006E
ΔE00 5.55
Royal
#0C1793
ΔE00 5.82
Navy
#000080
ΔE00 6.51
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A187C #5A7C18
analogous
#18287C #3A187C #6C187C
triadic
#3A187C #7C3A18 #187C3A
tetradic
#3A187C #7C1828 #5A7C18 #187C6C
square
#3A187C #7C1828 #5A7C18 #187C6C
split-complementary
#3A187C #7C6C18 #287C18
monochromatic
#0C051A #220E49 #3A187C #5222AF #6D36D8
Accessibility & contrast
On white
13.11
#3A187C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.60
#3A187C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A187C
13.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A187C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A187C | 1.00 | 13.11 | 1.60 | 13.11 |
| #FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.60 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00327F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#22344A
Achromatopsia (no color)
#303030
Design tokens & code
CSS
--color: #3a187c; /* rgb */ color: rgb(58, 24, 124); /* oklch */ color: oklch(32.9% 0.154 290.8);
Tailwind
colors: {
custom: {
50: '#7859a3',
500: '#3a187c',
950: '#000000',
},
}SCSS
$custom: #3a187c; $custom-light: #7859a3; $custom-dark: #000000;
JSON
{
"hex": "#3a187c",
"rgb": {
"r": 58,
"g": 24,
"b": 124
},
"hsl": {
"h": 260.4,
"s": 67.568,
"l": 29.02
},
"oklch": {
"l": 0.32927,
"c": 0.15439,
"h": 290.8
},
"luminance": 0.03008
}Semantic roles & 50–950 ramp
primary
#3A187C
secondary
#8AB13F
accent
#EA3DB0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F