#341786#341786
#341786 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.167 H 284.6°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).
Color values
| HEX | #341786 |
|---|---|
| RGB | rgb(52, 23, 134) |
| HSL | hsl(256, 71%, 31%) |
| HSV | hsv(256, 83%, 53%) |
| CMYK | cmyk(61.2%, 82.8%, 0%, 47.5%) |
| CIE-LAB | lab(20.30, 42.90, -56.22) |
| CIE-LCH | lch(20.30, 70.72, 307.34°) |
| OKLab | oklab(33.24% 0.0423 -0.162) |
| OKLCH | oklch(33.24% 0.167 284.6) |
| XYZ | xyz(6.0243, 3.0637, 22.8235) |
| Luminance | 0.0306 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 2.99
Royal
#0C1793
ΔE00 3.97
Indigo
#4B0082
ΔE00 4.77
Midnight Blue
#191970
ΔE00 5.01
Darkblue
#00008B
ΔE00 5.11
Navy
#000080
ΔE00 5.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341786 #698617
analogous
#173186 #341786 #6B1786
triadic
#341786 #863417 #178634
tetradic
#341786 #861731 #698617 #17866B
square
#341786 #861731 #698617 #17866B
split-complementary
#341786 #866B17 #318617
monochromatic
#0B051E #200E52 #341786 #4820BA #653ADD
Accessibility & contrast
On white
13.02
#341786 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.61
#341786 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341786
13.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341786 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341786 | 1.00 | 13.02 | 1.61 | 13.02 |
| #FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.61 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003489
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #341786; /* rgb */ color: rgb(52, 23, 134); /* oklch */ color: oklch(33.2% 0.167 284.6);
Tailwind
colors: {
custom: {
50: '#7759aa',
500: '#341786',
950: '#000000',
},
}SCSS
$custom: #341786; $custom-light: #7759aa; $custom-dark: #000000;
JSON
{
"hex": "#341786",
"rgb": {
"r": 52,
"g": 23,
"b": 134
},
"hsl": {
"h": 255.676,
"s": 70.701,
"l": 30.784
},
"oklch": {
"l": 0.3324,
"c": 0.16748,
"h": 284.6
},
"luminance": 0.03064
}Semantic roles & 50–950 ramp
primary
#341786
secondary
#9ABA3F
accent
#ED3ABF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F