#340B1F#340B1F

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

Color values

HEX#340B1F
RGBrgb(52, 11, 31)
HSLhsl(331, 65%, 12%)
HSVhsv(331, 79%, 20%)
CMYKcmyk(0%, 78.8%, 40.4%, 79.6%)
CIE-LABlab(9.55, 22.73, -2.90)
CIE-LCHlch(9.55, 22.92, 352.74°)
OKLaboklab(22.94% 0.0695 -0.0074)
OKLCHoklch(22.94% 0.07 353.9)
XYZxyz(1.7833, 1.0685, 1.4084)
Luminance0.0107 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B1F #0B3420
analogous
#340B33 #340B1F #340C0B
triadic
#340B1F #1F340B #0B1F34
tetradic
#340B1F #33340B #0B3420 #0C0B34
square
#340B1F #33340B #0B3420 #0C0B34
split-complementary
#340B1F #0B340C #0B3334
monochromatic
#19050F #19050F #340B1F #67163D #99205B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##340B1F#FFFFFF#000000##FFFFFF
##340B1F1.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)
#121620
Deuteranopia (green-blind)
#1D1D1E
Tritanopia (blue-blind)
#390813
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340b1f;
/* rgb */ color: rgb(52, 11, 31);
/* oklch */ color: oklch(22.9% 0.070 353.9);
Tailwind
colors: {
  custom: {
    50: '#6e4d5a',
    500: '#340b1f',
    950: '#000000',
  },
}
SCSS
$custom: #340b1f;
$custom-light: #6e4d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#340b1f",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 31
  },
  "hsl": {
    "h": 330.732,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.22944,
    "c": 0.06986,
    "h": 353.9
  },
  "luminance": 0.01068
}

Semantic roles & 50–950 ramp

primary
#340B1F
secondary
#2A714E
accent
#E89640
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #340B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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