#341E7D#341E7D
#341E7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.150 H 285.5°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).
Color values
| HEX | #341E7D |
|---|---|
| RGB | rgb(52, 30, 125) |
| HSL | hsl(254, 61%, 30%) |
| HSV | hsv(254, 76%, 49%) |
| CMYK | cmyk(58.4%, 76%, 0%, 51%) |
| CIE-LAB | lab(20.59, 36.61, -50.05) |
| CIE-LCH | lch(20.59, 62.01, 306.19°) |
| OKLab | oklab(33.16% 0.04 -0.1441) |
| OKLCH | oklch(33.16% 0.15 285.5) |
| XYZ | xyz(5.5810, 3.1390, 19.7099) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.04
Indigo (survey)
#380282
ΔE00 4.59
Royal
#0C1793
ΔE00 5.11
Indigo
#4B0082
ΔE00 5.85
Dark Royal Blue
#02066F
ΔE00 6.58
Darkblue
#00008B
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341E7D #677D1E
analogous
#1E377D #341E7D #631E7D
triadic
#341E7D #7D341E #1E7D34
tetradic
#341E7D #7D1E37 #677D1E #1E7D63
square
#341E7D #7D1E37 #677D1E #1E7D63
split-complementary
#341E7D #7D631E #377D1E
monochromatic
#0B061A #1F124C #341E7D #492AAE #6443D2
Accessibility & contrast
On white
12.90
#341E7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#341E7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341E7D
12.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341E7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341E7D | 1.00 | 12.90 | 1.63 | 12.90 |
| #FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.90 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#11384C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #341e7d; /* rgb */ color: rgb(52, 30, 125); /* oklch */ color: oklch(33.2% 0.150 285.5);
Tailwind
colors: {
custom: {
50: '#755ca4',
500: '#341e7d',
950: '#000000',
},
}SCSS
$custom: #341e7d; $custom-light: #755ca4; $custom-dark: #000000;
JSON
{
"hex": "#341e7d",
"rgb": {
"r": 52,
"g": 30,
"b": 125
},
"hsl": {
"h": 253.895,
"s": 61.29,
"l": 30.392
},
"oklch": {
"l": 0.33163,
"c": 0.14951,
"h": 285.5
},
"luminance": 0.03139
}Semantic roles & 50–950 ramp
primary
#341E7D
secondary
#98B046
accent
#E443BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F