#340D1F#340D1F

#340D1F is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.2% C 0.066 H 354.9°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#340D1F
RGBrgb(52, 13, 31)
HSLhsl(332, 60%, 13%)
HSVhsv(332, 75%, 20%)
CMYKcmyk(0%, 75%, 40.4%, 79.6%)
CIE-LABlab(9.93, 21.69, -2.33)
CIE-LCHlch(9.93, 21.82, 353.87°)
OKLaboklab(23.23% 0.0662 -0.0059)
OKLCHoklch(23.23% 0.066 354.9)
XYZxyz(1.8075, 1.1170, 1.4165)
Luminance0.0112 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D1F #0D3422
analogous
#340D32 #340D1F #340F0D
triadic
#340D1F #1F340D #0D1F34
tetradic
#340D1F #32340D #0D3422 #0F0D34
square
#340D1F #32340D #0D3422 #0F0D34
split-complementary
#340D1F #0D340F #0D3234
monochromatic
#18060F #18060F #340D1F #65193C #962559

Accessibility & contrast

On white

17.17
#340D1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D1F
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D1F#FFFFFF#000000##FFFFFF
##340D1F1.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131720
Deuteranopia (green-blind)
#1E1E1E
Tritanopia (blue-blind)
#390A14
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340d1f;
/* rgb */ color: rgb(52, 13, 31);
/* oklch */ color: oklch(23.2% 0.066 354.9);
Tailwind
colors: {
  custom: {
    50: '#6e4e5a',
    500: '#340d1f',
    950: '#000000',
  },
}
SCSS
$custom: #340d1f;
$custom-light: #6e4e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#340d1f",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 31
  },
  "hsl": {
    "h": 332.308,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23225,
    "c": 0.06646,
    "h": 354.9
  },
  "luminance": 0.01117
}

Semantic roles & 50–950 ramp

primary
#340D1F
secondary
#2D6F51
accent
#E39A45
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070203
muted
#7A7878

Preview Lab

Preview with #340D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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