#341D79#341D79

#341D79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.146 H 286.7°. Best body text is #FFFFFF at 13.14:1 contrast (WCAG AA passes).

Color values

HEX#341D79
RGBrgb(52, 29, 121)
HSLhsl(255, 61%, 29%)
HSVhsv(255, 76%, 47%)
CMYKcmyk(57%, 76%, 0%, 52.5%)
CIE-LABlab(20.00, 35.92, -48.47)
CIE-LCHlch(20.00, 60.33, 306.54°)
OKLaboklab(32.62% 0.0418 -0.1394)
OKLCHoklch(32.62% 0.146 286.7)
XYZxyz(5.3057, 2.9890, 18.3828)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D79 #62791D
analogous
#1D3479 #341D79 #621D79
triadic
#341D79 #79341D #1D7934
tetradic
#341D79 #791D34 #62791D #1D7962
square
#341D79 #791D34 #62791D #1D7962
split-complementary
#341D79 #79621D #34791D
monochromatic
#0B0619 #1F1148 #341D79 #4929AA #643FD1

Accessibility & contrast

On white

13.14
#341D79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#341D79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D79
13.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D79#FFFFFF#000000##FFFFFF
##341D791.0013.141.6013.14
#FFFFFF13.141.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.141.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #341d79;
/* rgb */ color: rgb(52, 29, 121);
/* oklch */ color: oklch(32.6% 0.146 286.7);
Tailwind
colors: {
  custom: {
    50: '#745ca1',
    500: '#341d79',
    950: '#000000',
  },
}
SCSS
$custom: #341d79;
$custom-light: #745ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#341d79",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 121
  },
  "hsl": {
    "h": 255,
    "s": 61.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32624,
    "c": 0.14558,
    "h": 286.7
  },
  "luminance": 0.02989
}

Semantic roles & 50–950 ramp

primary
#341D79
secondary
#93AD45
accent
#E443BC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341D79

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

Preview Lab → · Contrast checker → · Palette generator →

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