#3A186F#3A186F
#3A186F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.139 H 294.9°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).
Color values
| HEX | #3A186F |
|---|---|
| RGB | rgb(58, 24, 111) |
| HSL | hsl(263, 64%, 26%) |
| HSV | hsv(263, 78%, 44%) |
| CMYK | cmyk(47.7%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(18.80, 36.59, -43.97) |
| CIE-LCH | lch(18.80, 57.20, 309.77°) |
| OKLab | oklab(31.65% 0.0586 -0.126) |
| OKLCH | oklch(31.65% 0.139 294.9) |
| XYZ | xyz(4.9400, 2.7004, 15.2968) |
| Luminance | 0.0270 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.68
Royal Purple (survey)
#4B006E
ΔE00 4.81
Indigo
#4B0082
ΔE00 5.01
Midnight Blue
#191970
ΔE00 5.29
Dark Indigo
#1F0954
ΔE00 6.03
Dark Royal Blue
#02066F
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A186F #4D6F18
analogous
#18226F #3A186F #66186F
triadic
#3A186F #6F3A18 #186F3A
tetradic
#3A186F #6F1822 #4D6F18 #186F66
square
#3A186F #6F1822 #4D6F18 #186F66
split-complementary
#3A186F #6F6618 #226F18
monochromatic
#0D0519 #200D3D #3A186F #5423A1 #6F2FD2
Accessibility & contrast
On white
13.63
#3A186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.54
#3A186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A186F
13.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A186F | 1.00 | 13.63 | 1.54 | 13.63 |
| #FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.54 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#2B2F42
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #3a186f; /* rgb */ color: rgb(58, 24, 111); /* oklch */ color: oklch(31.6% 0.139 294.9);
Tailwind
colors: {
custom: {
50: '#765999',
500: '#3a186f',
950: '#000000',
},
}SCSS
$custom: #3a186f; $custom-light: #765999; $custom-dark: #000000;
JSON
{
"hex": "#3a186f",
"rgb": {
"r": 58,
"g": 24,
"b": 111
},
"hsl": {
"h": 263.448,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.31646,
"c": 0.13896,
"h": 294.9
},
"luminance": 0.02701
}Semantic roles & 50–950 ramp
primary
#3A186F
secondary
#7DA53E
accent
#E740A6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E