#341A66#341A66
#341A66 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.125 H 293.1°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).
Color values
| HEX | #341A66 |
|---|---|
| RGB | rgb(52, 26, 102) |
| HSL | hsl(261, 59%, 25%) |
| HSV | hsv(261, 75%, 40%) |
| CMYK | cmyk(49%, 74.5%, 0%, 60%) |
| CIE-LAB | lab(17.59, 31.75, -40.10) |
| CIE-LCH | lch(17.59, 51.15, 308.37°) |
| OKLab | oklab(30.36% 0.0491 -0.1149) |
| OKLCH | oklch(30.36% 0.125 293.1) |
| XYZ | xyz(4.1832, 2.4280, 12.8160) |
| Luminance | 0.0243 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 4.92
Dark Indigo
#1F0954
ΔE00 4.94
Royal Purple (survey)
#4B006E
ΔE00 6.17
Indigo (survey)
#380282
ΔE00 6.36
Darkblue (survey)
#030764
ΔE00 6.80
Indigo
#4B0082
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341A66 #4C661A
analogous
#1A2666 #341A66 #5A1A66
triadic
#341A66 #66341A #1A6634
tetradic
#341A66 #661A26 #4C661A #1A665A
square
#341A66 #661A26 #4C661A #1A665A
split-complementary
#341A66 #665A1A #26661A
monochromatic
#0C0618 #1B0E35 #341A66 #4D2697 #6633C8
Accessibility & contrast
On white
14.14
#341A66 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.49
#341A66 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341A66
14.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341A66 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341A66 | 1.00 | 14.14 | 1.49 | 14.14 |
| #FFFFFF | 14.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002C68
Deuteranopia (green-blind)
#002A64
Tritanopia (blue-blind)
#252D3E
Achromatopsia (no color)
#2B2B2B
Design tokens & code
CSS
--color: #341a66; /* rgb */ color: rgb(52, 26, 102); /* oklch */ color: oklch(30.4% 0.125 293.1);
Tailwind
colors: {
custom: {
50: '#715992',
500: '#341a66',
950: '#000000',
},
}SCSS
$custom: #341a66; $custom-light: #715992; $custom-dark: #000000;
JSON
{
"hex": "#341a66",
"rgb": {
"r": 52,
"g": 26,
"b": 102
},
"hsl": {
"h": 260.526,
"s": 59.375,
"l": 25.098
},
"oklch": {
"l": 0.30358,
"c": 0.12494,
"h": 293.1
},
"luminance": 0.02428
}Semantic roles & 50–950 ramp
primary
#341A66
secondary
#7C9C40
accent
#E345AD
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08030D
muted
#7B787E