#340B17#340B17

#340B17 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.6% C 0.066 H 6.3°. Best body text is #FFFFFF at 17.41:1 contrast (WCAG AA passes).

Color values

HEX#340B17
RGBrgb(52, 11, 23)
HSLhsl(342, 65%, 12%)
HSVhsv(342, 79%, 20%)
CMYKcmyk(0%, 78.8%, 55.8%, 79.6%)
CIE-LABlab(9.25, 21.68, 2.78)
CIE-LCHlch(9.25, 21.86, 7.32°)
OKLaboklab(22.63% 0.0661 0.0074)
OKLCHoklch(22.63% 0.066 6.3)
XYZxyz(1.6906, 1.0315, 0.9205)
Luminance0.0103 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B17 #0B3428
analogous
#340B2C #340B17 #34140B
triadic
#340B17 #17340B #0B1734
tetradic
#340B17 #2C340B #0B3428 #140B34
square
#340B17 #2C340B #0B3428 #140B34
split-complementary
#340B17 #0B3414 #0B2C34
monochromatic
#19050B #19050B #340B17 #67162D #992044

Accessibility & contrast

On white

17.41
#340B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B17
17.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B17#FFFFFF#000000##FFFFFF
##340B171.0017.411.2117.41
#FFFFFF17.411.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141517
Deuteranopia (green-blind)
#1F1D16
Tritanopia (blue-blind)
#390610
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340b17;
/* rgb */ color: rgb(52, 11, 23);
/* oklch */ color: oklch(22.6% 0.066 6.3);
Tailwind
colors: {
  custom: {
    50: '#6e4d53',
    500: '#340b17',
    950: '#000000',
  },
}
SCSS
$custom: #340b17;
$custom-light: #6e4d53;
$custom-dark: #000000;
JSON
{
  "hex": "#340b17",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 23
  },
  "hsl": {
    "h": 342.439,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22625,
    "c": 0.06649,
    "h": 6.3
  },
  "luminance": 0.01031
}

Semantic roles & 50–950 ramp

primary
#340B17
secondary
#2A715C
accent
#E8B740
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #340B17

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

Preview Lab → · Contrast checker → · Palette generator →

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