#340F21#340F21

#340F21 is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 23.6% C 0.064 H 352.8°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#340F21
RGBrgb(52, 15, 33)
HSLhsl(331, 55%, 13%)
HSVhsv(331, 71%, 20%)
CMYKcmyk(0%, 71.2%, 36.5%, 79.6%)
CIE-LABlab(10.42, 20.89, -3.11)
CIE-LCHlch(10.42, 21.12, 351.53°)
OKLaboklab(23.62% 0.0635 -0.008)
OKLCHoklch(23.62% 0.064 352.8)
XYZxyz(1.8616, 1.1817, 1.5686)
Luminance0.0118 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F21 #0F3422
analogous
#340F33 #340F21 #340F0F
triadic
#340F21 #21340F #0F2134
tetradic
#340F21 #33340F #0F3422 #0F0F34
square
#340F21 #33340F #0F3422 #0F0F34
split-complementary
#340F21 #0F340F #0F3334
monochromatic
#18070F #18070F #340F21 #631D3F #932A5D

Accessibility & contrast

On white

16.98
#340F21 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340F21 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F21
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F21#FFFFFF#000000##FFFFFF
##340F211.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141822
Deuteranopia (green-blind)
#1E1F20
Tritanopia (blue-blind)
#380D16
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340f21;
/* rgb */ color: rgb(52, 15, 33);
/* oklch */ color: oklch(23.6% 0.064 352.8);
Tailwind
colors: {
  custom: {
    50: '#6d4f5c',
    500: '#340f21',
    950: '#000000',
  },
}
SCSS
$custom: #340f21;
$custom-light: #6d4f5c;
$custom-dark: #000000;
JSON
{
  "hex": "#340f21",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 33
  },
  "hsl": {
    "h": 330.811,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23616,
    "c": 0.06404,
    "h": 352.8
  },
  "luminance": 0.01182
}

Semantic roles & 50–950 ramp

primary
#340F21
secondary
#316E50
accent
#DF9649
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070204
muted
#7A7879

Preview Lab

Preview with #340F21

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

Preview Lab → · Contrast checker → · Palette generator →

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