#340C1A#340C1A

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

Color values

HEX#340C1A
RGBrgb(52, 12, 26)
HSLhsl(339, 63%, 13%)
HSVhsv(339, 77%, 20%)
CMYKcmyk(0%, 76.9%, 50%, 79.6%)
CIE-LABlab(9.54, 21.53, 0.91)
CIE-LCHlch(9.54, 21.55, 2.43°)
OKLaboklab(22.88% 0.0658 0.0026)
OKLCHoklch(22.88% 0.066 2.3)
XYZxyz(1.7342, 1.0678, 1.0919)
Luminance0.0107 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C1A #0C3426
analogous
#340C2E #340C1A #34120C
triadic
#340C1A #1A340C #0C1A34
tetradic
#340C1A #2E340C #0C3426 #120C34
square
#340C1A #2E340C #0C3426 #120C34
split-complementary
#340C1A #0C3412 #0C2E34
monochromatic
#19060C #19060C #340C1A #661733 #97234C

Accessibility & contrast

On white

17.30
#340C1A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C1A
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C1A#FFFFFF#000000##FFFFFF
##340C1A1.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14161A
Deuteranopia (green-blind)
#1F1D19
Tritanopia (blue-blind)
#390712
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340c1a;
/* rgb */ color: rgb(52, 12, 26);
/* oklch */ color: oklch(22.9% 0.066 2.3);
Tailwind
colors: {
  custom: {
    50: '#6e4e56',
    500: '#340c1a',
    950: '#000000',
  },
}
SCSS
$custom: #340c1a;
$custom-light: #6e4e56;
$custom-dark: #000000;
JSON
{
  "hex": "#340c1a",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 26
  },
  "hsl": {
    "h": 339,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22876,
    "c": 0.06584,
    "h": 2.3
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#340C1A
secondary
#2C7058
accent
#E6AC42
background
#F6F4F5
surface
#ECE7E8
border
#C7C3C4
text
#070103
muted
#7A7778

Preview Lab

Preview with #340C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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