#340F1F#340F1F

#340F1F is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 23.5% C 0.063 H 356.1°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#340F1F
RGBrgb(52, 15, 31)
HSLhsl(334, 55%, 13%)
HSVhsv(334, 71%, 20%)
CMYKcmyk(0%, 71.2%, 40.4%, 79.6%)
CIE-LABlab(10.34, 20.58, -1.72)
CIE-LCHlch(10.34, 20.66, 355.22°)
OKLaboklab(23.53% 0.0628 -0.0043)
OKLCHoklch(23.53% 0.063 356.1)
XYZxyz(1.8344, 1.1708, 1.4254)
Luminance0.0117 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F1F #0F3424
analogous
#340F31 #340F1F #34110F
triadic
#340F1F #1F340F #0F1F34
tetradic
#340F1F #31340F #0F3424 #110F34
square
#340F1F #31340F #0F3424 #110F34
split-complementary
#340F1F #0F3411 #0F3134
monochromatic
#18070E #18070E #340F1F #631D3B #932A58

Accessibility & contrast

On white

17.02
#340F1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F1F
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F1F#FFFFFF#000000##FFFFFF
##340F1F1.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15181F
Deuteranopia (green-blind)
#1F1F1E
Tritanopia (blue-blind)
#390C15
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340f1f;
/* rgb */ color: rgb(52, 15, 31);
/* oklch */ color: oklch(23.5% 0.063 356.1);
Tailwind
colors: {
  custom: {
    50: '#6d4f5a',
    500: '#340f1f',
    950: '#000000',
  },
}
SCSS
$custom: #340f1f;
$custom-light: #6d4f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#340f1f",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 31
  },
  "hsl": {
    "h": 334.054,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23529,
    "c": 0.0629,
    "h": 356.1
  },
  "luminance": 0.01171
}

Semantic roles & 50–950 ramp

primary
#340F1F
secondary
#316E54
accent
#DF9E49
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070203
muted
#7A7878

Preview Lab

Preview with #340F1F

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

Preview Lab → · Contrast checker → · Palette generator →

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