#340F1B#340F1B

#340F1B is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 23.4% C 0.061 H 2.9°. Best body text is #FFFFFF at 17.07:1 contrast (WCAG AA passes).

Color values

HEX#340F1B
RGBrgb(52, 15, 27)
HSLhsl(341, 55%, 13%)
HSVhsv(341, 71%, 20%)
CMYKcmyk(0%, 71.2%, 48.1%, 79.6%)
CIE-LABlab(10.19, 20.01, 1.09)
CIE-LCHlch(10.19, 20.04, 3.11°)
OKLaboklab(23.37% 0.061 0.0031)
OKLCHoklch(23.37% 0.061 2.9)
XYZxyz(1.7849, 1.1510, 1.1649)
Luminance0.0115 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F1B #0F3428
analogous
#340F2D #340F1B #34150F
triadic
#340F1B #1B340F #0F1B34
tetradic
#340F1B #2D340F #0F3428 #150F34
square
#340F1B #2D340F #0F3428 #150F34
split-complementary
#340F1B #0F3415 #0F2D34
monochromatic
#18070C #18070C #340F1B #631D34 #932A4C

Accessibility & contrast

On white

17.07
#340F1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#340F1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F1B
17.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F1B#FFFFFF#000000##FFFFFF
##340F1B1.0017.071.2317.07
#FFFFFF17.071.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16171B
Deuteranopia (green-blind)
#201F1A
Tritanopia (blue-blind)
#390B14
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340f1b;
/* rgb */ color: rgb(52, 15, 27);
/* oklch */ color: oklch(23.4% 0.061 2.9);
Tailwind
colors: {
  custom: {
    50: '#6e4f57',
    500: '#340f1b',
    950: '#000000',
  },
}
SCSS
$custom: #340f1b;
$custom-light: #6e4f57;
$custom-dark: #000000;
JSON
{
  "hex": "#340f1b",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 27
  },
  "hsl": {
    "h": 340.541,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23369,
    "c": 0.06111,
    "h": 2.9
  },
  "luminance": 0.01151
}

Semantic roles & 50–950 ramp

primary
#340F1B
secondary
#316E5A
accent
#DFAE49
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070203
muted
#7A7878

Preview Lab

Preview with #340F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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