#341F7D#341F7D
#341F7D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.148 H 285.3°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).
Color values
| HEX | #341F7D |
|---|---|
| RGB | rgb(52, 31, 125) |
| HSL | hsl(253, 60%, 31%) |
| HSV | hsv(253, 75%, 49%) |
| CMYK | cmyk(58.4%, 75.2%, 0%, 51%) |
| CIE-LAB | lab(20.79, 36.06, -49.72) |
| CIE-LCH | lch(20.79, 61.42, 305.95°) |
| OKLab | oklab(33.3% 0.0391 -0.1431) |
| OKLCH | oklch(33.3% 0.148 285.3) |
| XYZ | xyz(5.6067, 3.1904, 19.7184) |
| Luminance | 0.0319 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.05
Indigo (survey)
#380282
ΔE00 4.83
Royal
#0C1793
ΔE00 5.18
Indigo
#4B0082
ΔE00 6.05
Dark Royal Blue
#02066F
ΔE00 6.73
Darkblue
#00008B
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341F7D #687D1F
analogous
#1F397D #341F7D #631F7D
triadic
#341F7D #7D341F #1F7D34
tetradic
#341F7D #7D1F39 #687D1F #1F7D63
square
#341F7D #7D1F39 #687D1F #1F7D63
split-complementary
#341F7D #7D631F #397D1F
monochromatic
#0B071B #20134C #341F7D #482BAE #6545D1
Accessibility & contrast
On white
12.82
#341F7D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#341F7D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341F7D
12.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341F7D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341F7D | 1.00 | 12.82 | 1.64 | 12.82 |
| #FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#11394C
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #341f7d; /* rgb */ color: rgb(52, 31, 125); /* oklch */ color: oklch(33.3% 0.148 285.3);
Tailwind
colors: {
custom: {
50: '#745da4',
500: '#341f7d',
950: '#000000',
},
}SCSS
$custom: #341f7d; $custom-light: #745da4; $custom-dark: #000000;
JSON
{
"hex": "#341f7d",
"rgb": {
"r": 52,
"g": 31,
"b": 125
},
"hsl": {
"h": 253.404,
"s": 60.256,
"l": 30.588
},
"oklch": {
"l": 0.33303,
"c": 0.14838,
"h": 285.3
},
"luminance": 0.03191
}Semantic roles & 50–950 ramp
primary
#341F7D
secondary
#99B048
accent
#E344C0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F