#341D7F#341D7F
#341D7F is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.153 H 285.2°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).
Color values
| HEX | #341D7F |
|---|---|
| RGB | rgb(52, 29, 127) |
| HSL | hsl(254, 63%, 31%) |
| HSV | hsv(254, 77%, 50%) |
| CMYK | cmyk(59.1%, 77.2%, 0%, 50.2%) |
| CIE-LAB | lab(20.60, 37.79, -51.31) |
| CIE-LCH | lch(20.60, 63.72, 306.37°) |
| OKLab | oklab(33.23% 0.0403 -0.1477) |
| OKLCH | oklch(33.23% 0.153 285.2) |
| XYZ | xyz(5.6851, 3.1408, 20.3812) |
| Luminance | 0.0314 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.18
Indigo (survey)
#380282
ΔE00 4.27
Royal
#0C1793
ΔE00 4.81
Indigo
#4B0082
ΔE00 5.62
Darkblue
#00008B
ΔE00 6.33
Navy
#000080
ΔE00 6.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341D7F #687F1D
analogous
#1D377F #341D7F #651D7F
triadic
#341D7F #7F341D #1D7F34
tetradic
#341D7F #7F1D37 #687F1D #1D7F65
square
#341D7F #7F1D37 #687F1D #1D7F65
split-complementary
#341D7F #7F651D #377F1D
monochromatic
#0B061B #20124D #341D7F #4828B1 #6542D4
Accessibility & contrast
On white
12.90
#341D7F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#341D7F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341D7F
12.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341D7F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341D7F | 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)
#003482
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#0E384C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #341d7f; /* rgb */ color: rgb(52, 29, 127); /* oklch */ color: oklch(33.2% 0.153 285.2);
Tailwind
colors: {
custom: {
50: '#755ca5',
500: '#341d7f',
950: '#000000',
},
}SCSS
$custom: #341d7f; $custom-light: #755ca5; $custom-dark: #000000;
JSON
{
"hex": "#341d7f",
"rgb": {
"r": 52,
"g": 29,
"b": 127
},
"hsl": {
"h": 254.082,
"s": 62.821,
"l": 30.588
},
"oklch": {
"l": 0.33229,
"c": 0.15313,
"h": 285.2
},
"luminance": 0.03141
}Semantic roles & 50–950 ramp
primary
#341D7F
secondary
#99B245
accent
#E642BF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F