#341F84#341F84
#341F84 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.157 H 283.8°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).
Color values
| HEX | #341F84 |
|---|---|
| RGB | rgb(52, 31, 132) |
| HSL | hsl(252, 62%, 32%) |
| HSV | hsv(252, 77%, 52%) |
| CMYK | cmyk(60.6%, 76.5%, 0%, 48.2%) |
| CIE-LAB | lab(21.49, 38.26, -53.00) |
| CIE-LCH | lch(21.49, 65.37, 305.83°) |
| OKLab | oklab(34.01% 0.0374 -0.1527) |
| OKLCH | oklch(34.01% 0.157 283.8) |
| XYZ | xyz(6.0697, 3.3756, 22.1570) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 4.38
Midnight Blue
#191970
ΔE00 4.58
Indigo (survey)
#380282
ΔE00 4.63
Indigo
#4B0082
ΔE00 5.95
Darkblue
#00008B
ΔE00 6.38
Cobalt Blue
#030AA7
ΔE00 6.47
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341F84 #6F841F
analogous
#1F3D84 #341F84 #671F84
triadic
#341F84 #84341F #1F8434
tetradic
#341F84 #841F3D #6F841F #1F8467
square
#341F84 #841F3D #6F841F #1F8467
split-complementary
#341F84 #84671F #3D841F
monochromatic
#0D0821 #201352 #341F84 #482BB6 #6649D4
Accessibility & contrast
On white
12.54
#341F84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#341F84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341F84
12.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341F84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341F84 | 1.00 | 12.54 | 1.68 | 12.54 |
| #FFFFFF | 12.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003787
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#033B50
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #341f84; /* rgb */ color: rgb(52, 31, 132); /* oklch */ color: oklch(34.0% 0.157 283.8);
Tailwind
colors: {
custom: {
50: '#765da9',
500: '#341f84',
950: '#000000',
},
}SCSS
$custom: #341f84; $custom-light: #765da9; $custom-dark: #000000;
JSON
{
"hex": "#341f84",
"rgb": {
"r": 52,
"g": 31,
"b": 132
},
"hsl": {
"h": 252.475,
"s": 61.963,
"l": 31.961
},
"oklch": {
"l": 0.34009,
"c": 0.15724,
"h": 283.8
},
"luminance": 0.03376
}Semantic roles & 50–950 ramp
primary
#341F84
secondary
#A0B748
accent
#E543C3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F