#340D3D#340D3D

#340D3D is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.0% C 0.094 H 319.5°. Best body text is #FFFFFF at 16.52:1 contrast (WCAG AA passes).

Color values

HEX#340D3D
RGBrgb(52, 13, 61)
HSLhsl(289, 65%, 15%)
HSVhsv(289, 79%, 24%)
CMYKcmyk(14.8%, 78.7%, 0%, 76.1%)
CIE-LABlab(11.65, 27.54, -21.72)
CIE-LCHlch(11.65, 35.07, 321.74°)
OKLaboklab(25.04% 0.0712 -0.0608)
OKLCHoklch(25.04% 0.094 319.5)
XYZxyz(2.4023, 1.3549, 4.5490)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D3D #163D0D
analogous
#1C0D3D #340D3D #3D0D2E
triadic
#340D3D #3D340D #0D3D34
tetradic
#340D3D #3D1C0D #163D0D #0D2E3D
square
#340D3D #3D1C0D #163D0D #0D2E3D
split-complementary
#340D3D #2E3D0D #0D3D1C
monochromatic
#160519 #160519 #340D3D #5F186F #8A23A2

Accessibility & contrast

On white

16.52
#340D3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D3D
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D3D#FFFFFF#000000##FFFFFF
##340D3D1.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3E
Deuteranopia (green-blind)
#11203C
Tritanopia (blue-blind)
#341623
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340d3d;
/* rgb */ color: rgb(52, 13, 61);
/* oklch */ color: oklch(25.0% 0.094 319.5);
Tailwind
colors: {
  custom: {
    50: '#6d5073',
    500: '#340d3d',
    950: '#000000',
  },
}
SCSS
$custom: #340d3d;
$custom-light: #6d5073;
$custom-dark: #000000;
JSON
{
  "hex": "#340d3d",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 61
  },
  "hsl": {
    "h": 288.75,
    "s": 64.865,
    "l": 14.51
  },
  "oklch": {
    "l": 0.25041,
    "c": 0.09363,
    "h": 319.5
  },
  "luminance": 0.01355
}

Semantic roles & 50–950 ramp

primary
#340D3D
secondary
#3B792D
accent
#E8405F
background
#F6F4F7
surface
#ECE7ED
border
#C7C3C8
text
#070208
muted
#7A787B

Preview Lab

Preview with #340D3D

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

Preview Lab → · Contrast checker → · Palette generator →

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