#341F82#341F82
#341F82 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.155 H 284.2°. Best body text is #FFFFFF at 12.62:1 contrast (WCAG AA passes).
Color values
| HEX | #341F82 |
|---|---|
| RGB | rgb(52, 31, 130) |
| HSL | hsl(253, 61%, 32%) |
| HSV | hsv(253, 76%, 51%) |
| CMYK | cmyk(60%, 76.2%, 0%, 49%) |
| CIE-LAB | lab(21.29, 37.63, -52.07) |
| CIE-LCH | lch(21.29, 64.25, 305.86°) |
| OKLab | oklab(33.81% 0.0379 -0.15) |
| OKLCH | oklch(33.81% 0.155 284.2) |
| XYZ | xyz(5.9342, 3.3214, 21.4432) |
| Luminance | 0.0332 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.41
Royal
#0C1793
ΔE00 4.59
Indigo (survey)
#380282
ΔE00 4.66
Indigo
#4B0082
ΔE00 5.96
Darkblue
#00008B
ΔE00 6.49
Navy
#000080
ΔE00 6.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341F82 #6D821F
analogous
#1F3C82 #341F82 #661F82
triadic
#341F82 #82341F #1F8234
tetradic
#341F82 #821F3C #6D821F #1F8266
square
#341F82 #821F3C #6D821F #1F8266
split-complementary
#341F82 #82661F #3C821F
monochromatic
#0C071F #201351 #341F82 #482BB3 #6648D3
Accessibility & contrast
On white
12.62
#341F82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#341F82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341F82
12.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341F82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341F82 | 1.00 | 12.62 | 1.66 | 12.62 |
| #FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003685
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#073A4F
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #341f82; /* rgb */ color: rgb(52, 31, 130); /* oklch */ color: oklch(33.8% 0.155 284.2);
Tailwind
colors: {
custom: {
50: '#755da7',
500: '#341f82',
950: '#000000',
},
}SCSS
$custom: #341f82; $custom-light: #755da7; $custom-dark: #000000;
JSON
{
"hex": "#341f82",
"rgb": {
"r": 52,
"g": 31,
"b": 130
},
"hsl": {
"h": 252.727,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.33806,
"c": 0.15472,
"h": 284.2
},
"luminance": 0.03322
}Semantic roles & 50–950 ramp
primary
#341F82
secondary
#9EB548
accent
#E543C2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F