#341B89#341B89
#341B89 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.167 H 283.4°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).
Color values
| HEX | #341B89 |
|---|---|
| RGB | rgb(52, 27, 137) |
| HSL | hsl(254, 67%, 32%) |
| HSV | hsv(254, 80%, 54%) |
| CMYK | cmyk(62%, 80.3%, 0%, 46.3%) |
| CIE-LAB | lab(21.28, 41.89, -56.48) |
| CIE-LCH | lch(21.28, 70.32, 306.56°) |
| OKLab | oklab(34.02% 0.0388 -0.1628) |
| OKLCH | oklch(34.02% 0.167 283.4) |
| XYZ | xyz(6.3221, 3.3196, 23.9697) |
| Luminance | 0.0332 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.75
Indigo (survey)
#380282
ΔE00 3.83
Midnight Blue
#191970
ΔE00 5.13
Indigo
#4B0082
ΔE00 5.37
Cobalt Blue
#030AA7
ΔE00 5.45
Darkblue
#00008B
ΔE00 5.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341B89 #70891B
analogous
#1B3989 #341B89 #6B1B89
triadic
#341B89 #89341B #1B8934
tetradic
#341B89 #891B39 #70891B #1B896B
square
#341B89 #891B39 #70891B #1B896B
split-complementary
#341B89 #896B1B #39891B
monochromatic
#0D0723 #211156 #341B89 #4725BC #6644DA
Accessibility & contrast
On white
12.62
#341B89 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#341B89 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341B89
12.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341B89 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341B89 | 1.00 | 12.62 | 1.66 | 12.62 |
| #FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002F87
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #341b89; /* rgb */ color: rgb(52, 27, 137); /* oklch */ color: oklch(34.0% 0.167 283.4);
Tailwind
colors: {
custom: {
50: '#775bad',
500: '#341b89',
950: '#000000',
},
}SCSS
$custom: #341b89; $custom-light: #775bad; $custom-dark: #000000;
JSON
{
"hex": "#341b89",
"rgb": {
"r": 52,
"g": 27,
"b": 137
},
"hsl": {
"h": 253.636,
"s": 67.073,
"l": 32.157
},
"oklch": {
"l": 0.3402,
"c": 0.16741,
"h": 283.4
},
"luminance": 0.0332
}Semantic roles & 50–950 ramp
primary
#341B89
secondary
#A0BC44
accent
#EA3EC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F