#340B1C#340B1C

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

Color values

HEX#340B1C
RGBrgb(52, 11, 28)
HSLhsl(335, 65%, 12%)
HSVhsv(335, 79%, 20%)
CMYKcmyk(0%, 78.8%, 46.2%, 79.6%)
CIE-LABlab(9.43, 22.31, -0.78)
CIE-LCHlch(9.43, 22.32, 357.99°)
OKLaboklab(22.82% 0.0683 -0.0018)
OKLCHoklch(22.82% 0.068 358.5)
XYZxyz(1.7456, 1.0535, 1.2098)
Luminance0.0105 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B1C #0B3423
analogous
#340B31 #340B1C #340F0B
triadic
#340B1C #1C340B #0B1C34
tetradic
#340B1C #31340B #0B3423 #0F0B34
square
#340B1C #31340B #0B3423 #0F0B34
split-complementary
#340B1C #0B340F #0B3134
monochromatic
#19050E #19050E #340B1C #671637 #992052

Accessibility & contrast

On white

17.35
#340B1C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B1C
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B1C#FFFFFF#000000##FFFFFF
##340B1C1.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13151C
Deuteranopia (green-blind)
#1E1D1B
Tritanopia (blue-blind)
#390712
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340b1c;
/* rgb */ color: rgb(52, 11, 28);
/* oklch */ color: oklch(22.8% 0.068 358.5);
Tailwind
colors: {
  custom: {
    50: '#6e4d57',
    500: '#340b1c',
    950: '#000000',
  },
}
SCSS
$custom: #340b1c;
$custom-light: #6e4d57;
$custom-dark: #000000;
JSON
{
  "hex": "#340b1c",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 28
  },
  "hsl": {
    "h": 335.122,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22815,
    "c": 0.0683,
    "h": 358.5
  },
  "luminance": 0.01053
}

Semantic roles & 50–950 ramp

primary
#340B1C
secondary
#2A7153
accent
#E8A240
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #340B1C

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

Preview Lab → · Contrast checker → · Palette generator →

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