#341E79#341E79

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

Color values

HEX#341E79
RGBrgb(52, 30, 121)
HSLhsl(255, 60%, 30%)
HSVhsv(255, 75%, 47%)
CMYKcmyk(57%, 75.2%, 0%, 52.5%)
CIE-LABlab(20.20, 35.36, -48.14)
CIE-LCHlch(20.20, 59.73, 306.30°)
OKLaboklab(32.76% 0.041 -0.1385)
OKLCHoklch(32.76% 0.144 286.5)
XYZxyz(5.3306, 3.0388, 18.3911)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341E79 #63791E
analogous
#1E3679 #341E79 #611E79
triadic
#341E79 #79341E #1E7934
tetradic
#341E79 #791E36 #63791E #1E7961
square
#341E79 #791E36 #63791E #1E7961
split-complementary
#341E79 #79611E #36791E
monochromatic
#0B0619 #1F1248 #341E79 #492AAA #6441D0

Accessibility & contrast

On white

13.06
#341E79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#341E79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341E79
13.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341E79#FFFFFF#000000##FFFFFF
##341E791.0013.061.6113.06
#FFFFFF13.061.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#163749
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341e79;
/* rgb */ color: rgb(52, 30, 121);
/* oklch */ color: oklch(32.8% 0.144 286.5);
Tailwind
colors: {
  custom: {
    50: '#745ca1',
    500: '#341e79',
    950: '#000000',
  },
}
SCSS
$custom: #341e79;
$custom-light: #745ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#341e79",
  "rgb": {
    "r": 52,
    "g": 30,
    "b": 121
  },
  "hsl": {
    "h": 254.505,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.32764,
    "c": 0.14442,
    "h": 286.5
  },
  "luminance": 0.03039
}

Semantic roles & 50–950 ramp

primary
#341E79
secondary
#94AD46
accent
#E344BD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341E79

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

Preview Lab → · Contrast checker → · Palette generator →

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