#341B88#341B88
#341B88 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.9% C 0.166 H 283.6°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).
Color values
| HEX | #341B88 |
|---|---|
| RGB | rgb(52, 27, 136) |
| HSL | hsl(254, 67%, 32%) |
| HSV | hsv(254, 80%, 53%) |
| CMYK | cmyk(61.8%, 80.1%, 0%, 46.7%) |
| CIE-LAB | lab(21.17, 41.59, -56.03) |
| CIE-LCH | lch(21.17, 69.78, 306.58°) |
| OKLab | oklab(33.91% 0.0391 -0.1615) |
| OKLCH | oklch(33.91% 0.166 283.6) |
| XYZ | xyz(6.2507, 3.2911, 23.5936) |
| Luminance | 0.0329 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.80
Royal
#0C1793
ΔE00 3.83
Midnight Blue
#191970
ΔE00 5.03
Indigo
#4B0082
ΔE00 5.34
Cobalt Blue
#030AA7
ΔE00 5.57
Darkblue
#00008B
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341B88 #6F881B
analogous
#1B3988 #341B88 #6A1B88
triadic
#341B88 #88341B #1B8834
tetradic
#341B88 #881B39 #6F881B #1B886A
square
#341B88 #881B39 #6F881B #1B886A
split-complementary
#341B88 #886A1B #39881B
monochromatic
#0D0722 #201155 #341B88 #4825BB #6644DA
Accessibility & contrast
On white
12.66
#341B88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#341B88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341B88
12.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341B88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341B88 | 1.00 | 12.66 | 1.66 | 12.66 |
| #FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00368B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #341b88; /* rgb */ color: rgb(52, 27, 136); /* oklch */ color: oklch(33.9% 0.166 283.6);
Tailwind
colors: {
custom: {
50: '#775bac',
500: '#341b88',
950: '#000000',
},
}SCSS
$custom: #341b88; $custom-light: #775bac; $custom-dark: #000000;
JSON
{
"hex": "#341b88",
"rgb": {
"r": 52,
"g": 27,
"b": 136
},
"hsl": {
"h": 253.761,
"s": 66.871,
"l": 31.961
},
"oklch": {
"l": 0.33914,
"c": 0.16621,
"h": 283.6
},
"luminance": 0.03292
}Semantic roles & 50–950 ramp
primary
#341B88
secondary
#A0BB44
accent
#EA3EC2
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F