#341977#341977
#341977 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.148 H 288.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).
Color values
| HEX | #341977 |
|---|---|
| RGB | rgb(52, 25, 119) |
| HSL | hsl(257, 65%, 28%) |
| HSV | hsv(257, 79%, 47%) |
| CMYK | cmyk(56.3%, 79%, 0%, 53.3%) |
| CIE-LAB | lab(19.04, 37.45, -48.76) |
| CIE-LCH | lch(19.04, 61.48, 307.52°) |
| OKLab | oklab(31.89% 0.0457 -0.1403) |
| OKLCH | oklch(31.89% 0.148 288) |
| XYZ | xyz(5.0926, 2.7570, 17.7130) |
| Luminance | 0.0276 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Indigo (survey)
#380282
ΔE00 3.90
Midnight Blue
#191970
ΔE00 3.96
Indigo
#4B0082
ΔE00 5.22
Royal
#0C1793
ΔE00 5.75
Dark Royal Blue
#02066F
ΔE00 5.90
Deep Blue
#040273
ΔE00 6.04
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#341977 #5C7719
analogous
#192D77 #341977 #631977
triadic
#341977 #773419 #197734
tetradic
#341977 #77192D #5C7719 #197763
square
#341977 #77192D #5C7719 #197763
split-complementary
#341977 #776319 #2D7719
monochromatic
#0B0519 #1E0E44 #341977 #4A24AA #6336D5
Accessibility & contrast
On white
13.54
#341977 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#341977 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #341977
13.54:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##341977 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##341977 | 1.00 | 13.54 | 1.55 | 13.54 |
| #FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.54 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002C75
Tritanopia (blue-blind)
#183347
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #341977; /* rgb */ color: rgb(52, 25, 119); /* oklch */ color: oklch(31.9% 0.148 288.0);
Tailwind
colors: {
custom: {
50: '#74599f',
500: '#341977',
950: '#000000',
},
}SCSS
$custom: #341977; $custom-light: #74599f; $custom-dark: #000000;
JSON
{
"hex": "#341977",
"rgb": {
"r": 52,
"g": 25,
"b": 119
},
"hsl": {
"h": 257.234,
"s": 65.278,
"l": 28.235
},
"oklch": {
"l": 0.31889,
"c": 0.14752,
"h": 288
},
"luminance": 0.02757
}Semantic roles & 50–950 ramp
primary
#341977
secondary
#8DAC40
accent
#E840B8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E