#340D21#340D21

#340D21 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.3% C 0.068 H 351.8°. Best body text is #FFFFFF at 17.13:1 contrast (WCAG AA passes).

Color values

HEX#340D21
RGBrgb(52, 13, 33)
HSLhsl(329, 60%, 13%)
HSVhsv(329, 75%, 20%)
CMYKcmyk(0%, 75%, 36.5%, 79.6%)
CIE-LABlab(10.01, 21.99, -3.72)
CIE-LCHlch(10.01, 22.31, 350.40°)
OKLaboklab(23.32% 0.067 -0.0096)
OKLCHoklch(23.32% 0.068 351.8)
XYZxyz(1.8347, 1.1279, 1.5596)
Luminance0.0113 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D21 #0D3420
analogous
#330D34 #340D21 #340D0D
triadic
#340D21 #21340D #0D2134
tetradic
#340D21 #34330D #0D3420 #0D0D34
square
#340D21 #34330D #0D3420 #0D0D34
split-complementary
#340D21 #0D340D #0D3433
monochromatic
#180610 #180610 #340D21 #651940 #96255F

Accessibility & contrast

On white

17.13
#340D21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D21
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D21#FFFFFF#000000##FFFFFF
##340D211.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131722
Deuteranopia (green-blind)
#1D1E20
Tritanopia (blue-blind)
#380B15
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340d21;
/* rgb */ color: rgb(52, 13, 33);
/* oklch */ color: oklch(23.3% 0.068 351.8);
Tailwind
colors: {
  custom: {
    50: '#6d4e5c',
    500: '#340d21',
    950: '#000000',
  },
}
SCSS
$custom: #340d21;
$custom-light: #6d4e5c;
$custom-dark: #000000;
JSON
{
  "hex": "#340d21",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 33
  },
  "hsl": {
    "h": 329.231,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23315,
    "c": 0.06764,
    "h": 351.8
  },
  "luminance": 0.01128
}

Semantic roles & 50–950 ramp

primary
#340D21
secondary
#2D6F4E
accent
#E39245
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070204
muted
#7A7879

Preview Lab

Preview with #340D21

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

Preview Lab → · Contrast checker → · Palette generator →

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