#340D1B#340D1B

#340D1B is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.1% C 0.065 H 1.3°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#340D1B
RGBrgb(52, 13, 27)
HSLhsl(338, 60%, 13%)
HSVhsv(338, 75%, 20%)
CMYKcmyk(0%, 75%, 48.1%, 79.6%)
CIE-LABlab(9.78, 21.13, 0.49)
CIE-LCHlch(9.78, 21.13, 1.32°)
OKLaboklab(23.06% 0.0645 0.0015)
OKLCHoklch(23.06% 0.065 1.3)
XYZxyz(1.7580, 1.0972, 1.1559)
Luminance0.0110 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D1B #0D3426
analogous
#340D2E #340D1B #34130D
triadic
#340D1B #1B340D #0D1B34
tetradic
#340D1B #2E340D #0D3426 #130D34
square
#340D1B #2E340D #0D3426 #130D34
split-complementary
#340D1B #0D3413 #0D2E34
monochromatic
#18060D #18060D #340D1B #651934 #96254E

Accessibility & contrast

On white

17.22
#340D1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340D1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D1B
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D1B#FFFFFF#000000##FFFFFF
##340D1B1.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14161B
Deuteranopia (green-blind)
#1F1E1A
Tritanopia (blue-blind)
#390912
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340d1b;
/* rgb */ color: rgb(52, 13, 27);
/* oklch */ color: oklch(23.1% 0.065 1.3);
Tailwind
colors: {
  custom: {
    50: '#6e4e57',
    500: '#340d1b',
    950: '#000000',
  },
}
SCSS
$custom: #340d1b;
$custom-light: #6e4e57;
$custom-dark: #000000;
JSON
{
  "hex": "#340d1b",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 27
  },
  "hsl": {
    "h": 338.462,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.2306,
    "c": 0.06456,
    "h": 1.3
  },
  "luminance": 0.01097
}

Semantic roles & 50–950 ramp

primary
#340D1B
secondary
#2D6F58
accent
#E3AA45
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070203
muted
#7A7878

Preview Lab

Preview with #340D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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