#341C79#341C79

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

Color values

HEX#341C79
RGBrgb(52, 28, 121)
HSLhsl(255, 62%, 29%)
HSVhsv(255, 77%, 47%)
CMYKcmyk(57%, 76.9%, 0%, 52.5%)
CIE-LABlab(19.81, 36.47, -48.79)
CIE-LCHlch(19.81, 60.91, 306.78°)
OKLaboklab(32.49% 0.0427 -0.1404)
OKLCHoklch(32.49% 0.147 286.9)
XYZxyz(5.2816, 2.9408, 18.3748)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341C79 #61791C
analogous
#1C3379 #341C79 #631C79
triadic
#341C79 #79341C #1C7934
tetradic
#341C79 #791C33 #61791C #1C7963
square
#341C79 #791C33 #61791C #1C7963
split-complementary
#341C79 #79631C #33791C
monochromatic
#0B0619 #1F1047 #341C79 #4928AB #643DD2

Accessibility & contrast

On white

13.22
#341C79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #341C79
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341C79#FFFFFF#000000##FFFFFF
##341C791.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002D77
Tritanopia (blue-blind)
#163649
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #341c79;
/* rgb */ color: rgb(52, 28, 121);
/* oklch */ color: oklch(32.5% 0.147 286.9);
Tailwind
colors: {
  custom: {
    50: '#745ba1',
    500: '#341c79',
    950: '#000000',
  },
}
SCSS
$custom: #341c79;
$custom-light: #745ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#341c79",
  "rgb": {
    "r": 52,
    "g": 28,
    "b": 121
  },
  "hsl": {
    "h": 255.484,
    "s": 62.416,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32486,
    "c": 0.14671,
    "h": 286.9
  },
  "luminance": 0.02941
}

Semantic roles & 50–950 ramp

primary
#341C79
secondary
#92AD44
accent
#E542BB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341C79

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

Preview Lab → · Contrast checker → · Palette generator →

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