#3A146F#3A146F
#3A146F is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.143 H 295.7°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).
Color values
| HEX | #3A146F |
|---|---|
| RGB | rgb(58, 20, 111) |
| HSL | hsl(265, 69%, 26%) |
| HSV | hsv(265, 82%, 44%) |
| CMYK | cmyk(47.7%, 82%, 0%, 56.5%) |
| CIE-LAB | lab(18.13, 38.51, -45.07) |
| CIE-LCH | lch(18.13, 59.28, 310.51°) |
| OKLab | oklab(31.18% 0.0622 -0.1292) |
| OKLCH | oklch(31.18% 0.143 295.7) |
| XYZ | xyz(4.8635, 2.5474, 15.2713) |
| Luminance | 0.0255 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.11
Royal Purple (survey)
#4B006E
ΔE00 4.25
Indigo
#4B0082
ΔE00 4.49
Midnight Blue
#191970
ΔE00 5.51
Dark Indigo
#1F0954
ΔE00 5.85
Dark Royal Blue
#02066F
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A146F #496F14
analogous
#141B6F #3A146F #67146F
triadic
#3A146F #6F3A14 #146F3A
tetradic
#3A146F #6F141B #496F14 #146F67
square
#3A146F #6F141B #496F14 #146F67
split-complementary
#3A146F #6F6714 #1B6F14
monochromatic
#0E051A #1F0B3B #3A146F #551DA3 #7027D7
Accessibility & contrast
On white
13.91
#3A146F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#3A146F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A146F
13.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A146F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A146F | 1.00 | 13.91 | 1.51 | 13.91 |
| #FFFFFF | 13.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002B6D
Tritanopia (blue-blind)
#2B2D41
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #3a146f; /* rgb */ color: rgb(58, 20, 111); /* oklch */ color: oklch(31.2% 0.143 295.7);
Tailwind
colors: {
custom: {
50: '#765799',
500: '#3a146f',
950: '#000000',
},
}SCSS
$custom: #3a146f; $custom-light: #765799; $custom-dark: #000000;
JSON
{
"hex": "#3a146f",
"rgb": {
"r": 58,
"g": 20,
"b": 111
},
"hsl": {
"h": 265.055,
"s": 69.466,
"l": 25.686
},
"oklch": {
"l": 0.31177,
"c": 0.14335,
"h": 295.7
},
"luminance": 0.02548
}Semantic roles & 50–950 ramp
primary
#3A146F
secondary
#78A639
accent
#EC3CA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E