#340D2C#340D2C

#340D2C is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 23.9% C 0.076 H 336.7°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#340D2C
RGBrgb(52, 13, 44)
HSLhsl(312, 60%, 13%)
HSVhsv(312, 75%, 20%)
CMYKcmyk(0%, 75%, 15.4%, 79.6%)
CIE-LABlab(10.56, 23.91, -11.12)
CIE-LCHlch(10.56, 26.37, 335.06°)
OKLaboklab(23.89% 0.0701 -0.0302)
OKLCHoklch(23.89% 0.076 336.7)
XYZxyz(2.0147, 1.1999, 2.5079)
Luminance0.0120 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D2C #0D3415
analogous
#280D34 #340D2C #340D18
triadic
#340D2C #2C340D #0D2C34
tetradic
#340D2C #34280D #0D3415 #0D1834
square
#340D2C #34280D #0D3415 #0D1834
split-complementary
#340D2C #18340D #0D3428
monochromatic
#180615 #180615 #340D2C #651955 #96257F

Accessibility & contrast

On white

16.94
#340D2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D2C
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D2C#FFFFFF#000000##FFFFFF
##340D2C1.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E192D
Deuteranopia (green-blind)
#1A1F2B
Tritanopia (blue-blind)
#370F1A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340d2c;
/* rgb */ color: rgb(52, 13, 44);
/* oklch */ color: oklch(23.9% 0.076 336.7);
Tailwind
colors: {
  custom: {
    50: '#6d4f65',
    500: '#340d2c',
    950: '#000000',
  },
}
SCSS
$custom: #340d2c;
$custom-light: #6d4f65;
$custom-dark: #000000;
JSON
{
  "hex": "#340d2c",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 44
  },
  "hsl": {
    "h": 312.308,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23891,
    "c": 0.07627,
    "h": 336.7
  },
  "luminance": 0.012
}

Semantic roles & 50–950 ramp

primary
#340D2C
secondary
#2D6F3B
accent
#E36545
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #340D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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