#340F1C#340F1C

#340F1C is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 23.4% C 0.061 H 1.2°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#340F1C
RGBrgb(52, 15, 28)
HSLhsl(339, 55%, 13%)
HSVhsv(339, 71%, 20%)
CMYKcmyk(0%, 71.2%, 46.2%, 79.6%)
CIE-LABlab(10.23, 20.14, 0.38)
CIE-LCHlch(10.23, 20.15, 1.09°)
OKLaboklab(23.41% 0.0615 0.0012)
OKLCHoklch(23.41% 0.061 1.2)
XYZxyz(1.7967, 1.1558, 1.2268)
Luminance0.0116 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F1C #0F3427
analogous
#340F2E #340F1C #34140F
triadic
#340F1C #1C340F #0F1C34
tetradic
#340F1C #2E340F #0F3427 #140F34
square
#340F1C #2E340F #0F3427 #140F34
split-complementary
#340F1C #0F3414 #0F2E34
monochromatic
#18070D #18070D #340F1C #631D36 #932A4F

Accessibility & contrast

On white

17.06
#340F1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340F1C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F1C
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F1C#FFFFFF#000000##FFFFFF
##340F1C1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16171C
Deuteranopia (green-blind)
#201F1B
Tritanopia (blue-blind)
#390B14
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340f1c;
/* rgb */ color: rgb(52, 15, 28);
/* oklch */ color: oklch(23.4% 0.061 1.2);
Tailwind
colors: {
  custom: {
    50: '#6e4f57',
    500: '#340f1c',
    950: '#000000',
  },
}
SCSS
$custom: #340f1c;
$custom-light: #6e4f57;
$custom-dark: #000000;
JSON
{
  "hex": "#340f1c",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 28
  },
  "hsl": {
    "h": 338.919,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23407,
    "c": 0.06149,
    "h": 1.2
  },
  "luminance": 0.01156
}

Semantic roles & 50–950 ramp

primary
#340F1C
secondary
#316E59
accent
#DFAA49
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070203
muted
#7A7878

Preview Lab

Preview with #340F1C

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

Preview Lab → · Contrast checker → · Palette generator →

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