#340D32#340D32

#340D32 is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 24.3% C 0.082 H 329.9°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#340D32
RGBrgb(52, 13, 50)
HSLhsl(303, 60%, 13%)
HSVhsv(303, 75%, 20%)
CMYKcmyk(0%, 75%, 3.8%, 79.6%)
CIE-LABlab(10.91, 25.10, -14.97)
CIE-LCHlch(10.91, 29.23, 329.19°)
OKLaboklab(24.26% 0.071 -0.0412)
OKLCHoklch(24.26% 0.082 329.9)
XYZxyz(2.1358, 1.2484, 3.1455)
Luminance0.0125 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D32 #0D340F
analogous
#220D34 #340D32 #340D1E
triadic
#340D32 #32340D #0D3234
tetradic
#340D32 #34220D #0D340F #0D1E34
square
#340D32 #34220D #0D340F #0D1E34
split-complementary
#340D32 #1E340D #0D3422
monochromatic
#180618 #180618 #340D32 #651961 #962590

Accessibility & contrast

On white

16.81
#340D32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#340D32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D32
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D32#FFFFFF#000000##FFFFFF
##340D321.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1A33
Deuteranopia (green-blind)
#171F31
Tritanopia (blue-blind)
#36111E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340d32;
/* rgb */ color: rgb(52, 13, 50);
/* oklch */ color: oklch(24.3% 0.082 329.9);
Tailwind
colors: {
  custom: {
    50: '#6d4f6a',
    500: '#340d32',
    950: '#000000',
  },
}
SCSS
$custom: #340d32;
$custom-light: #6d4f6a;
$custom-dark: #000000;
JSON
{
  "hex": "#340d32",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 50
  },
  "hsl": {
    "h": 303.077,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.24263,
    "c": 0.08204,
    "h": 329.9
  },
  "luminance": 0.01248
}

Semantic roles & 50–950 ramp

primary
#340D32
secondary
#2D6F31
accent
#E34D45
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340D32

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

Preview Lab → · Contrast checker → · Palette generator →

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