#340A1B#340A1B

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

Color values

HEX#340A1B
RGBrgb(52, 10, 27)
HSLhsl(336, 68%, 12%)
HSVhsv(336, 81%, 20%)
CMYKcmyk(0%, 80.8%, 48.1%, 79.6%)
CIE-LABlab(9.21, 22.67, -0.34)
CIE-LCHlch(9.21, 22.68, 359.14°)
OKLaboklab(22.64% 0.0694 -0.0006)
OKLCHoklch(22.64% 0.069 359.5)
XYZxyz(1.7227, 1.0265, 1.1441)
Luminance0.0103 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A1B #0A3423
analogous
#340A30 #340A1B #340E0A
triadic
#340A1B #1B340A #0A1B34
tetradic
#340A1B #30340A #0A3423 #0E0A34
square
#340A1B #30340A #0A3423 #0E0A34
split-complementary
#340A1B #0A340E #0A3034
monochromatic
#1A050D #1A050D #340A1B #671436 #9B1E50

Accessibility & contrast

On white

17.42
#340A1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A1B
17.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A1B#FFFFFF#000000##FFFFFF
##340A1B1.0017.421.2117.42
#FFFFFF17.421.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12151B
Deuteranopia (green-blind)
#1E1D1A
Tritanopia (blue-blind)
#390611
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340a1b;
/* rgb */ color: rgb(52, 10, 27);
/* oklch */ color: oklch(22.6% 0.069 359.5);
Tailwind
colors: {
  custom: {
    50: '#6e4c57',
    500: '#340a1b',
    950: '#000000',
  },
}
SCSS
$custom: #340a1b;
$custom-light: #6e4c57;
$custom-dark: #000000;
JSON
{
  "hex": "#340a1b",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 27
  },
  "hsl": {
    "h": 335.714,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22641,
    "c": 0.06944,
    "h": 359.5
  },
  "luminance": 0.01026
}

Semantic roles & 50–950 ramp

primary
#340A1B
secondary
#287154
accent
#EBA43D
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #340A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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