#3A176F#3A176F
#3A176F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.140 H 295.1°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).
Color values
| HEX | #3A176F |
|---|---|
| RGB | rgb(58, 23, 111) |
| HSL | hsl(264, 66%, 26%) |
| HSV | hsv(264, 79%, 44%) |
| CMYK | cmyk(47.7%, 79.3%, 0%, 56.5%) |
| CIE-LAB | lab(18.63, 37.09, -44.25) |
| CIE-LCH | lch(18.63, 57.74, 309.96°) |
| OKLab | oklab(31.52% 0.0595 -0.1268) |
| OKLCH | oklch(31.52% 0.14 295.1) |
| XYZ | xyz(4.9198, 2.6599, 15.2900) |
| Luminance | 0.0266 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 4.52
Royal Purple (survey)
#4B006E
ΔE00 4.65
Indigo
#4B0082
ΔE00 4.86
Midnight Blue
#191970
ΔE00 5.34
Dark Indigo
#1F0954
ΔE00 5.97
Dark Royal Blue
#02066F
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#3A176F #4C6F17
analogous
#17206F #3A176F #66176F
triadic
#3A176F #6F3A17 #176F3A
tetradic
#3A176F #6F1720 #4C6F17 #176F66
square
#3A176F #6F1720 #4C6F17 #176F66
split-complementary
#3A176F #6F6617 #206F17
monochromatic
#0D0519 #200C3C #3A176F #5422A2 #6F2DD3
Accessibility & contrast
On white
13.71
#3A176F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.53
#3A176F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #3A176F
13.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##3A176F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##3A176F | 1.00 | 13.71 | 1.53 | 13.71 |
| #FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#2B2F42
Achromatopsia (no color)
#2D2D2D
Design tokens & code
CSS
--color: #3a176f; /* rgb */ color: rgb(58, 23, 111); /* oklch */ color: oklch(31.5% 0.140 295.1);
Tailwind
colors: {
custom: {
50: '#765899',
500: '#3a176f',
950: '#000000',
},
}SCSS
$custom: #3a176f; $custom-light: #765899; $custom-dark: #000000;
JSON
{
"hex": "#3a176f",
"rgb": {
"r": 58,
"g": 23,
"b": 111
},
"hsl": {
"h": 263.864,
"s": 65.672,
"l": 26.275
},
"oklch": {
"l": 0.31524,
"c": 0.1401,
"h": 295.1
},
"luminance": 0.0266
}Semantic roles & 50–950 ramp
primary
#3A176F
secondary
#7CA53D
accent
#E93FA5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E