#340D39#340D39

#340D39 is a very dark, moderate purple. Relative luminance 0.013; OKLCH L 24.7% C 0.089 H 323.0°. Best body text is #FFFFFF at 16.63:1 contrast (WCAG AA passes).

Color values

HEX#340D39
RGBrgb(52, 13, 57)
HSLhsl(293, 63%, 14%)
HSVhsv(293, 77%, 22%)
CMYKcmyk(8.8%, 77.2%, 0%, 77.6%)
CIE-LABlab(11.37, 26.62, -19.31)
CIE-LCHlch(11.37, 32.89, 324.04°)
OKLaboklab(24.74% 0.0713 -0.0538)
OKLCHoklch(24.74% 0.089 323)
XYZxyz(2.2985, 1.3134, 4.0026)
Luminance0.0131 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D39 #12390D
analogous
#1E0D39 #340D39 #390D28
triadic
#340D39 #39340D #0D3934
tetradic
#340D39 #391E0D #12390D #0D2839
square
#340D39 #391E0D #12390D #0D2839
split-complementary
#340D39 #28390D #0D391E
monochromatic
#170619 #170619 #340D39 #61186B #8F249D

Accessibility & contrast

On white

16.63
#340D39 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#340D39 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D39
16.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D39#FFFFFF#000000##FFFFFF
##340D391.0016.631.2616.63
#FFFFFF16.631.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041B3A
Deuteranopia (green-blind)
#132038
Tritanopia (blue-blind)
#351421
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #340d39;
/* rgb */ color: rgb(52, 13, 57);
/* oklch */ color: oklch(24.7% 0.089 323.0);
Tailwind
colors: {
  custom: {
    50: '#6d4f6f',
    500: '#340d39',
    950: '#000000',
  },
}
SCSS
$custom: #340d39;
$custom-light: #6d4f6f;
$custom-dark: #000000;
JSON
{
  "hex": "#340d39",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 57
  },
  "hsl": {
    "h": 293.182,
    "s": 62.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.24744,
    "c": 0.08931,
    "h": 323
  },
  "luminance": 0.01313
}

Semantic roles & 50–950 ramp

primary
#340D39
secondary
#35742D
accent
#E64255
background
#F6F4F6
surface
#ECE7EC
border
#C7C3C7
text
#070207
muted
#7A787A

Preview Lab

Preview with #340D39

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

Preview Lab → · Contrast checker → · Palette generator →

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