#340F39#340F39

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

Color values

HEX#340F39
RGBrgb(52, 15, 57)
HSLhsl(293, 58%, 14%)
HSVhsv(293, 74%, 22%)
CMYKcmyk(8.8%, 73.7%, 0%, 77.6%)
CIE-LABlab(11.74, 25.59, -18.73)
CIE-LCHlch(11.74, 31.71, 323.81°)
OKLaboklab(25.01% 0.0685 -0.0521)
OKLCHoklch(25.01% 0.086 322.7)
XYZxyz(2.3254, 1.3672, 4.0115)
Luminance0.0137 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F39 #14390F
analogous
#1F0F39 #340F39 #390F29
triadic
#340F39 #39340F #0F3934
tetradic
#340F39 #391F0F #14390F #0F2939
square
#340F39 #391F0F #14390F #0F2939
split-complementary
#340F39 #29390F #0F391F
monochromatic
#160618 #160618 #340F39 #601C69 #8C299A

Accessibility & contrast

On white

16.49
#340F39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F39
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F39#FFFFFF#000000##FFFFFF
##340F391.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061C3A
Deuteranopia (green-blind)
#152038
Tritanopia (blue-blind)
#351622
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #340f39;
/* rgb */ color: rgb(52, 15, 57);
/* oklch */ color: oklch(25.0% 0.086 322.7);
Tailwind
colors: {
  custom: {
    50: '#6d506f',
    500: '#340f39',
    950: '#000000',
  },
}
SCSS
$custom: #340f39;
$custom-light: #6d506f;
$custom-dark: #000000;
JSON
{
  "hex": "#340f39",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 57
  },
  "hsl": {
    "h": 292.857,
    "s": 58.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2501,
    "c": 0.08606,
    "h": 322.7
  },
  "luminance": 0.01367
}

Semantic roles & 50–950 ramp

primary
#340F39
secondary
#387330
accent
#E24659
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340F39

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

Preview Lab → · Contrast checker → · Palette generator →

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