#340D3C#340D3C

#340D3C is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 25.0% C 0.093 H 320.3°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#340D3C
RGBrgb(52, 13, 60)
HSLhsl(290, 64%, 14%)
HSVhsv(290, 78%, 24%)
CMYKcmyk(13.3%, 78.3%, 0%, 76.5%)
CIE-LABlab(11.58, 27.30, -21.12)
CIE-LCHlch(11.58, 34.52, 322.27°)
OKLaboklab(24.97% 0.0712 -0.0591)
OKLCHoklch(24.97% 0.093 320.3)
XYZxyz(2.3756, 1.3443, 4.4084)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D3C #153C0D
analogous
#1D0D3C #340D3C #3C0D2D
triadic
#340D3C #3C340D #0D3C34
tetradic
#340D3C #3C1D0D #153C0D #0D2D3C
square
#340D3C #3C1D0D #153C0D #0D2D3C
split-complementary
#340D3C #2D3C0D #0D3C1D
monochromatic
#160519 #160519 #340D3C #60186E #8B23A1

Accessibility & contrast

On white

16.55
#340D3C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#340D3C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D3C
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D3C#FFFFFF#000000##FFFFFF
##340D3C1.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011C3D
Deuteranopia (green-blind)
#11203B
Tritanopia (blue-blind)
#341523
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340d3c;
/* rgb */ color: rgb(52, 13, 60);
/* oklch */ color: oklch(25.0% 0.093 320.3);
Tailwind
colors: {
  custom: {
    50: '#6d4f72',
    500: '#340d3c',
    950: '#000000',
  },
}
SCSS
$custom: #340d3c;
$custom-light: #6d4f72;
$custom-dark: #000000;
JSON
{
  "hex": "#340d3c",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 60
  },
  "hsl": {
    "h": 289.787,
    "s": 64.384,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24965,
    "c": 0.09254,
    "h": 320.3
  },
  "luminance": 0.01344
}

Semantic roles & 50–950 ramp

primary
#340D3C
secondary
#3A782D
accent
#E7405D
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070208
muted
#7A787B

Preview Lab

Preview with #340D3C

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

Preview Lab → · Contrast checker → · Palette generator →

#340D3C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva