#341B8B#341B8B
#341B8B is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.2% C 0.170 H 283.0°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #341B8B |
|---|---|
| RGB | rgb(52, 27, 139) |
| HSL | hsl(253, 67%, 33%) |
| HSV | hsv(253, 81%, 55%) |
| CMYK | cmyk(62.6%, 80.6%, 0%, 45.5%) |
| CIE-LAB | lab(21.50, 42.50, -57.38) |
| CIE-LCH | lch(21.50, 71.40, 306.52°) |
| OKLab | oklab(34.24% 0.0382 -0.1655) |
| OKLCH | oklch(34.24% 0.17 283) |
| XYZ | xyz(6.4669, 3.3776, 24.7323) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.63
Indigo (survey)
#380282
ΔE00 3.91
Cobalt Blue
#030AA7
ΔE00 5.22
Midnight Blue
#191970
ΔE00 5.35
Indigo Blue
#3A18B1
ΔE00 5.35
Indigo
#4B0082
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341B8B #728B1B
analogous
#1B3A8B #341B8B #6C1B8B
triadic
#341B8B #8B341B #1B8B34
tetradic
#341B8B #8B1B3A #728B1B #1B8B6C
square
#341B8B #8B1B3A #728B1B #1B8B6C
split-complementary
#341B8B #8B6C1B #3A8B1B
monochromatic
#0E0725 #211158 #341B8B #4725BE #6745DB
Accessibility & contrast
On white
12.53
#341B8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#341B8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341B8B
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341B8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341B8B | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00378E
Deuteranopia (green-blind)
#003089
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #341b8b; /* rgb */ color: rgb(52, 27, 139); /* oklch */ color: oklch(34.2% 0.170 283.0);
Tailwind
colors: {
custom: {
50: '#785bae',
500: '#341b8b',
950: '#000000',
},
}SCSS
$custom: #341b8b; $custom-light: #785bae; $custom-dark: #000000;
JSON
{
"hex": "#341b8b",
"rgb": {
"r": 52,
"g": 27,
"b": 139
},
"hsl": {
"h": 253.393,
"s": 67.47,
"l": 32.549
},
"oklch": {
"l": 0.34235,
"c": 0.16982,
"h": 283
},
"luminance": 0.03378
}Semantic roles & 50–950 ramp
primary
#341B8B
secondary
#A2BC45
accent
#EA3DC4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F