#341A8A#341A8A
#341A8A is a dark, vivid violet. Relative luminance 0.033; OKLCH L 34.0% C 0.170 H 283.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).
Color values
| HEX | #341A8A |
|---|---|
| RGB | rgb(52, 26, 138) |
| HSL | hsl(254, 68%, 32%) |
| HSV | hsv(254, 81%, 54%) |
| CMYK | cmyk(62.3%, 81.2%, 0%, 45.9%) |
| CIE-LAB | lab(21.22, 42.68, -57.21) |
| CIE-LCH | lch(21.22, 71.38, 306.72°) |
| OKLab | oklab(34.01% 0.0391 -0.165) |
| OKLCH | oklch(34.01% 0.17 283.3) |
| XYZ | xyz(6.3716, 3.3034, 24.3417) |
| Luminance | 0.0330 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 3.67
Indigo (survey)
#380282
ΔE00 3.68
Cobalt Blue
#030AA7
ΔE00 5.26
Indigo
#4B0082
ΔE00 5.27
Midnight Blue
#191970
ΔE00 5.27
Darkblue
#00008B
ΔE00 5.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341A8A #708A1A
analogous
#1A388A #341A8A #6C1A8A
triadic
#341A8A #8A341A #1A8A34
tetradic
#341A8A #8A1A38 #708A1A #1A8A6C
square
#341A8A #8A1A38 #708A1A #1A8A6C
split-complementary
#341A8A #8A6C1A #388A1A
monochromatic
#0D0723 #211057 #341A8A #4724BD #6643DC
Accessibility & contrast
On white
12.64
#341A8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#341A8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341A8A
12.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341A8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341A8A | 1.00 | 12.64 | 1.66 | 12.64 |
| #FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002F88
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #341a8a; /* rgb */ color: rgb(52, 26, 138); /* oklch */ color: oklch(34.0% 0.170 283.3);
Tailwind
colors: {
custom: {
50: '#775bad',
500: '#341a8a',
950: '#000000',
},
}SCSS
$custom: #341a8a; $custom-light: #775bad; $custom-dark: #000000;
JSON
{
"hex": "#341a8a",
"rgb": {
"r": 52,
"g": 26,
"b": 138
},
"hsl": {
"h": 253.929,
"s": 68.293,
"l": 32.157
},
"oklch": {
"l": 0.3401,
"c": 0.16954,
"h": 283.3
},
"luminance": 0.03304
}Semantic roles & 50–950 ramp
primary
#341A8A
secondary
#A0BD43
accent
#EB3DC3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F