#341D7D#341D7D

#341D7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.151 H 285.7°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#341D7D
RGBrgb(52, 29, 125)
HSLhsl(254, 62%, 30%)
HSVhsv(254, 77%, 49%)
CMYKcmyk(58.4%, 76.8%, 0%, 51%)
CIE-LABlab(20.40, 37.17, -50.37)
CIE-LCHlch(20.40, 62.59, 306.42°)
OKLaboklab(33.03% 0.0408 -0.145)
OKLCHoklch(33.03% 0.151 285.7)
XYZxyz(5.5561, 3.0891, 19.7016)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#341D7D #667D1D
analogous
#1D367D #341D7D #641D7D
triadic
#341D7D #7D341D #1D7D34
tetradic
#341D7D #7D1D36 #667D1D #1D7D64
square
#341D7D #7D1D36 #667D1D #1D7D64
split-complementary
#341D7D #7D641D #367D1D
monochromatic
#0B061A #1F114B #341D7D #4929AF #6441D3

Accessibility & contrast

On white

12.98
#341D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#341D7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #341D7D
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##341D7D#FFFFFF#000000##FFFFFF
##341D7D1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#11384B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #341d7d;
/* rgb */ color: rgb(52, 29, 125);
/* oklch */ color: oklch(33.0% 0.151 285.7);
Tailwind
colors: {
  custom: {
    50: '#755ca4',
    500: '#341d7d',
    950: '#000000',
  },
}
SCSS
$custom: #341d7d;
$custom-light: #755ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#341d7d",
  "rgb": {
    "r": 52,
    "g": 29,
    "b": 125
  },
  "hsl": {
    "h": 254.375,
    "s": 62.338,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33025,
    "c": 0.15063,
    "h": 285.7
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#341D7D
secondary
#97B145
accent
#E542BE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #341D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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