#341B81#341B81
#341B81 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.158 H 285.2°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).
Color values
| HEX | #341B81 |
|---|---|
| RGB | rgb(52, 27, 129) |
| HSL | hsl(255, 65%, 31%) |
| HSV | hsv(255, 79%, 51%) |
| CMYK | cmyk(59.7%, 79.1%, 0%, 49.4%) |
| CIE-LAB | lab(20.43, 39.46, -52.84) |
| CIE-LCH | lch(20.43, 65.95, 306.75°) |
| OKLab | oklab(33.17% 0.0412 -0.1522) |
| OKLCH | oklch(33.17% 0.158 285.2) |
| XYZ | xyz(5.7693, 3.0986, 21.0587) |
| Luminance | 0.0310 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.77
Midnight Blue
#191970
ΔE00 4.38
Royal
#0C1793
ΔE00 4.49
Indigo
#4B0082
ΔE00 5.26
Darkblue
#00008B
ΔE00 5.89
Navy
#000080
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341B81 #68811B
analogous
#1B3581 #341B81 #671B81
triadic
#341B81 #81341B #1B8134
tetradic
#341B81 #811B35 #68811B #1B8167
square
#341B81 #811B35 #68811B #1B8167
split-complementary
#341B81 #81671B #35811B
monochromatic
#0B061C #20104E #341B81 #4826B4 #653FD7
Accessibility & contrast
On white
12.96
#341B81 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#341B81 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341B81
12.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341B81 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341B81 | 1.00 | 12.96 | 1.62 | 12.96 |
| #FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.96 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003484
Deuteranopia (green-blind)
#002E7F
Tritanopia (blue-blind)
#0A384D
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #341b81; /* rgb */ color: rgb(52, 27, 129); /* oklch */ color: oklch(33.2% 0.158 285.2);
Tailwind
colors: {
custom: {
50: '#765ba7',
500: '#341b81',
950: '#000000',
},
}SCSS
$custom: #341b81; $custom-light: #765ba7; $custom-dark: #000000;
JSON
{
"hex": "#341b81",
"rgb": {
"r": 52,
"g": 27,
"b": 129
},
"hsl": {
"h": 254.706,
"s": 65.385,
"l": 30.588
},
"oklch": {
"l": 0.33175,
"c": 0.1577,
"h": 285.2
},
"luminance": 0.03099
}Semantic roles & 50–950 ramp
primary
#341B81
secondary
#99B543
accent
#E83FBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F