#340C2E#340C2E

#340C2E is a very dark, moderate purple. Relative luminance 0.012; OKLCH L 23.9% C 0.080 H 334.3°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#340C2E
RGBrgb(52, 12, 46)
HSLhsl(309, 63%, 13%)
HSVhsv(309, 77%, 20%)
CMYKcmyk(0%, 76.9%, 11.5%, 79.6%)
CIE-LABlab(10.49, 24.81, -12.70)
CIE-LCHlch(10.49, 27.87, 332.88°)
OKLaboklab(23.88% 0.0719 -0.0347)
OKLCHoklch(23.88% 0.08 334.3)
XYZxyz(2.0408, 1.1904, 2.7065)
Luminance0.0119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C2E #0C3412
analogous
#260C34 #340C2E #340C1A
triadic
#340C2E #2E340C #0C2E34
tetradic
#340C2E #34260C #0C3412 #0C1A34
square
#340C2E #34260C #0C3412 #0C1A34
split-complementary
#340C2E #1A340C #0C3426
monochromatic
#190616 #190616 #340C2E #66175A #972386

Accessibility & contrast

On white

16.96
#340C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C2E
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C2E#FFFFFF#000000##FFFFFF
##340C2E1.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B192F
Deuteranopia (green-blind)
#191F2D
Tritanopia (blue-blind)
#370F1B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340c2e;
/* rgb */ color: rgb(52, 12, 46);
/* oklch */ color: oklch(23.9% 0.080 334.3);
Tailwind
colors: {
  custom: {
    50: '#6d4e66',
    500: '#340c2e',
    950: '#000000',
  },
}
SCSS
$custom: #340c2e;
$custom-light: #6d4e66;
$custom-dark: #000000;
JSON
{
  "hex": "#340c2e",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 309,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23877,
    "c": 0.07983,
    "h": 334.3
  },
  "luminance": 0.0119
}

Semantic roles & 50–950 ramp

primary
#340C2E
secondary
#2C7036
accent
#E65B42
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070206
muted
#7A787A

Preview Lab

Preview with #340C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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