#340F1D#340F1D

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

Color values

HEX#340F1D
RGBrgb(52, 15, 29)
HSLhsl(337, 55%, 13%)
HSVhsv(337, 71%, 20%)
CMYKcmyk(0%, 71.2%, 44.2%, 79.6%)
CIE-LABlab(10.26, 20.29, -0.32)
CIE-LCHlch(10.26, 20.29, 359.09°)
OKLaboklab(23.45% 0.0619 -0.0006)
OKLCHoklch(23.45% 0.062 359.5)
XYZxyz(1.8089, 1.1606, 1.2909)
Luminance0.0116 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F1D #0F3426
analogous
#340F2F #340F1D #34130F
triadic
#340F1D #1D340F #0F1D34
tetradic
#340F1D #2F340F #0F3426 #130F34
square
#340F1D #2F340F #0F3426 #130F34
split-complementary
#340F1D #0F3413 #0F2F34
monochromatic
#18070D #18070D #340F1D #631D37 #932A52

Accessibility & contrast

On white

17.05
#340F1D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F1D
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F1D#FFFFFF#000000##FFFFFF
##340F1D1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15181D
Deuteranopia (green-blind)
#1F1F1C
Tritanopia (blue-blind)
#390C14
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340f1d;
/* rgb */ color: rgb(52, 15, 29);
/* oklch */ color: oklch(23.4% 0.062 359.5);
Tailwind
colors: {
  custom: {
    50: '#6e4f58',
    500: '#340f1d',
    950: '#000000',
  },
}
SCSS
$custom: #340f1d;
$custom-light: #6e4f58;
$custom-dark: #000000;
JSON
{
  "hex": "#340f1d",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 29
  },
  "hsl": {
    "h": 337.297,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23447,
    "c": 0.06191,
    "h": 359.5
  },
  "luminance": 0.0116
}

Semantic roles & 50–950 ramp

primary
#340F1D
secondary
#316E57
accent
#DFA649
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070203
muted
#7A7878

Preview Lab

Preview with #340F1D

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

Preview Lab → · Contrast checker → · Palette generator →

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