#341D78#341D78

#341D78 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.5% C 0.144 H 286.9°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#341D78
RGBrgb(52, 29, 120)
HSLhsl(255, 61%, 29%)
HSVhsv(255, 76%, 47%)
CMYKcmyk(56.7%, 75.8%, 0%, 52.9%)
CIE-LABlab(19.90, 35.61, -47.99)
CIE-LCHlch(19.90, 59.76, 306.57°)
OKLaboklab(32.52% 0.0421 -0.138)
OKLCHoklch(32.52% 0.144 286.9)
XYZxyz(5.2447, 2.9646, 18.0615)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D78 #61781D
analogous
#1D3478 #341D78 #621D78
triadic
#341D78 #78341D #1D7834
tetradic
#341D78 #781D34 #61781D #1D7862
square
#341D78 #781D34 #61781D #1D7862
split-complementary
#341D78 #78621D #34781D
monochromatic
#0B0619 #1F1147 #341D78 #4929A9 #643FD1

Accessibility & contrast

On white

13.18
#341D78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#341D78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D78
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D78#FFFFFF#000000##FFFFFF
##341D781.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#173649
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341d78;
/* rgb */ color: rgb(52, 29, 120);
/* oklch */ color: oklch(32.5% 0.144 286.9);
Tailwind
colors: {
  custom: {
    50: '#745ba0',
    500: '#341d78',
    950: '#000000',
  },
}
SCSS
$custom: #341d78;
$custom-light: #745ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#341d78",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 120
  },
  "hsl": {
    "h": 255.165,
    "s": 61.074,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32524,
    "c": 0.14431,
    "h": 286.9
  },
  "luminance": 0.02965
}

Semantic roles & 50–950 ramp

primary
#341D78
secondary
#92AC45
accent
#E444BC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040F
muted
#7B797E

Preview Lab

Preview with #341D78

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#341D78 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva