#340C32#340C32

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

Color values

HEX#340C32
RGBrgb(52, 12, 50)
HSLhsl(303, 63%, 13%)
HSVhsv(303, 77%, 20%)
CMYKcmyk(0%, 76.9%, 3.8%, 79.6%)
CIE-LABlab(10.73, 25.61, -15.25)
CIE-LCHlch(10.73, 29.81, 329.22°)
OKLaboklab(24.13% 0.0724 -0.042)
OKLCHoklch(24.13% 0.084 329.9)
XYZxyz(2.1234, 1.2235, 3.1413)
Luminance0.0122 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C32 #0C340E
analogous
#220C34 #340C32 #340C1E
triadic
#340C32 #32340C #0C3234
tetradic
#340C32 #34220C #0C340E #0C1E34
square
#340C32 #34220C #0C340E #0C1E34
split-complementary
#340C32 #1E340C #0C3422
monochromatic
#190618 #190618 #340C32 #661762 #972392

Accessibility & contrast

On white

16.87
#340C32 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340C32 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340C32
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C32#FFFFFF#000000##FFFFFF
##340C321.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081933
Deuteranopia (green-blind)
#171F31
Tritanopia (blue-blind)
#36111D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340c32;
/* rgb */ color: rgb(52, 12, 50);
/* oklch */ color: oklch(24.1% 0.084 329.9);
Tailwind
colors: {
  custom: {
    50: '#6d4e6a',
    500: '#340c32',
    950: '#000000',
  },
}
SCSS
$custom: #340c32;
$custom-light: #6d4e6a;
$custom-dark: #000000;
JSON
{
  "hex": "#340c32",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 50
  },
  "hsl": {
    "h": 303,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.24132,
    "c": 0.0837,
    "h": 329.9
  },
  "luminance": 0.01223
}

Semantic roles & 50–950 ramp

primary
#340C32
secondary
#2C702F
accent
#E64A42
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340C32

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

Preview Lab → · Contrast checker → · Palette generator →

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