#340B1D#340B1D

#340B1D is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 22.9% C 0.069 H 357.0°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#340B1D
RGBrgb(52, 11, 29)
HSLhsl(334, 65%, 12%)
HSVhsv(334, 79%, 20%)
CMYKcmyk(0%, 78.8%, 44.2%, 79.6%)
CIE-LABlab(9.47, 22.45, -1.49)
CIE-LCHlch(9.47, 22.50, 356.19°)
OKLaboklab(22.86% 0.0687 -0.0036)
OKLCHoklch(22.86% 0.069 357)
XYZxyz(1.7577, 1.0583, 1.2739)
Luminance0.0106 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B1D #0B3422
analogous
#340B31 #340B1D #340E0B
triadic
#340B1D #1D340B #0B1D34
tetradic
#340B1D #31340B #0B3422 #0E0B34
square
#340B1D #31340B #0B3422 #0E0B34
split-complementary
#340B1D #0B340E #0B3134
monochromatic
#19050E #19050E #340B1D #671639 #992055

Accessibility & contrast

On white

17.33
#340B1D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#340B1D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B1D
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B1D#FFFFFF#000000##FFFFFF
##340B1D1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12161D
Deuteranopia (green-blind)
#1E1D1C
Tritanopia (blue-blind)
#390712
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340b1d;
/* rgb */ color: rgb(52, 11, 29);
/* oklch */ color: oklch(22.9% 0.069 357.0);
Tailwind
colors: {
  custom: {
    50: '#6e4d58',
    500: '#340b1d',
    950: '#000000',
  },
}
SCSS
$custom: #340b1d;
$custom-light: #6e4d58;
$custom-dark: #000000;
JSON
{
  "hex": "#340b1d",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 29
  },
  "hsl": {
    "h": 333.659,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22857,
    "c": 0.06879,
    "h": 357
  },
  "luminance": 0.01058
}

Semantic roles & 50–950 ramp

primary
#340B1D
secondary
#2A7152
accent
#E89E40
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #340B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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