#341E8B#341E8B
#341E8B is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.167 H 282.5°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).
Color values
| HEX | #341E8B |
|---|---|
| RGB | rgb(52, 30, 139) |
| HSL | hsl(252, 64%, 33%) |
| HSV | hsv(252, 78%, 55%) |
| CMYK | cmyk(62.6%, 78.4%, 0%, 45.5%) |
| CIE-LAB | lab(22.02, 40.98, -56.51) |
| CIE-LCH | lch(22.02, 69.81, 305.95°) |
| OKLab | oklab(34.6% 0.0362 -0.163) |
| OKLCH | oklch(34.6% 0.167 282.5) |
| XYZ | xyz(6.5392, 3.5222, 24.7564) |
| Luminance | 0.0352 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.76
Indigo (survey)
#380282
ΔE00 4.51
Midnight Blue
#191970
ΔE00 5.30
Indigo Blue
#3A18B1
ΔE00 5.43
Cobalt Blue
#030AA7
ΔE00 5.52
Indigo
#4B0082
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341E8B #758B1E
analogous
#1E3E8B #341E8B #6A1E8B
triadic
#341E8B #8B341E #1E8B34
tetradic
#341E8B #8B1E3E #758B1E #1E8B6A
square
#341E8B #8B1E3E #758B1E #1E8B6A
split-complementary
#341E8B #8B6A1E #3E8B1E
monochromatic
#0E0826 #211359 #341E8B #4729BD #684BD8
Accessibility & contrast
On white
12.32
#341E8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.70
#341E8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341E8B
12.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341E8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341E8B | 1.00 | 12.32 | 1.70 | 12.32 |
| #FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.70 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.32 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003189
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #341e8b; /* rgb */ color: rgb(52, 30, 139); /* oklch */ color: oklch(34.6% 0.167 282.5);
Tailwind
colors: {
custom: {
50: '#775dae',
500: '#341e8b',
950: '#000000',
},
}SCSS
$custom: #341e8b; $custom-light: #775dae; $custom-dark: #000000;
JSON
{
"hex": "#341e8b",
"rgb": {
"r": 52,
"g": 30,
"b": 139
},
"hsl": {
"h": 252.11,
"s": 64.497,
"l": 33.137
},
"oklch": {
"l": 0.34603,
"c": 0.16694,
"h": 282.5
},
"luminance": 0.03523
}Semantic roles & 50–950 ramp
primary
#341E8B
secondary
#A4BB4A
accent
#E740C6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F