#3A156E#3A156E
#3A156E is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.141 H 295.9°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).
Color values
| HEX | #3A156E |
|---|---|
| RGB | rgb(58, 21, 110) |
| HSL | hsl(265, 68%, 26%) |
| HSV | hsv(265, 81%, 43%) |
| CMYK | cmyk(47.3%, 80.9%, 0%, 56.9%) |
| CIE-LAB | lab(18.19, 37.77, -44.31) |
| CIE-LCH | lch(18.19, 58.22, 310.44°) |
| OKLab | oklab(31.19% 0.0616 -0.127) |
| OKLCH | oklch(31.19% 0.141 295.9) |
| XYZ | xyz(4.8268, 2.5615, 14.9889) |
| Luminance | 0.0256 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal Purple (survey)
#4B006E
ΔE00 4.35
Indigo (survey)
#380282
ΔE00 4.39
Indigo
#4B0082
ΔE00 4.71
Midnight Blue
#191970
ΔE00 5.51
Dark Indigo
#1F0954
ΔE00 5.79
Dark Royal Blue
#02066F
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A156E #496E15
analogous
#151C6E #3A156E #66156E
triadic
#3A156E #6E3A15 #156E3A
tetradic
#3A156E #6E151C #496E15 #156E66
square
#3A156E #6E151C #496E15 #156E66
split-complementary
#3A156E #6E6615 #1C6E15
monochromatic
#0E051A #1F0B3B #3A156E #551FA1 #7029D5
Accessibility & contrast
On white
13.89
#3A156E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#3A156E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A156E
13.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A156E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A156E | 1.00 | 13.89 | 1.51 | 13.89 |
| #FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#002B6C
Tritanopia (blue-blind)
#2C2D41
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #3a156e; /* rgb */ color: rgb(58, 21, 110); /* oklch */ color: oklch(31.2% 0.141 295.9);
Tailwind
colors: {
custom: {
50: '#765798',
500: '#3a156e',
950: '#000000',
},
}SCSS
$custom: #3a156e; $custom-light: #765798; $custom-dark: #000000;
JSON
{
"hex": "#3a156e",
"rgb": {
"r": 58,
"g": 21,
"b": 110
},
"hsl": {
"h": 264.944,
"s": 67.939,
"l": 25.686
},
"oklch": {
"l": 0.31191,
"c": 0.14113,
"h": 295.9
},
"luminance": 0.02562
}Semantic roles & 50–950 ramp
primary
#3A156E
secondary
#78A43A
accent
#EB3DA3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E