#340B2D#340B2D

#340B2D is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 23.7% C 0.081 H 335.3°. Best body text is #FFFFFF at 17.05:1 contrast (WCAG AA passes).

Color values

HEX#340B2D
RGBrgb(52, 11, 45)
HSLhsl(310, 65%, 12%)
HSVhsv(310, 79%, 20%)
CMYKcmyk(0%, 78.8%, 13.5%, 79.6%)
CIE-LABlab(10.25, 25.10, -12.33)
CIE-LCHlch(10.25, 27.97, 333.84°)
OKLaboklab(23.69% 0.0732 -0.0336)
OKLCHoklch(23.69% 0.081 335.3)
XYZxyz(2.0095, 1.1590, 2.6000)
Luminance0.0116 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B2D #0B3412
analogous
#270B34 #340B2D #340B19
triadic
#340B2D #2D340B #0B2D34
tetradic
#340B2D #34270B #0B3412 #0B1934
square
#340B2D #34270B #0B3412 #0B1934
split-complementary
#340B2D #19340B #0B3427
monochromatic
#190516 #190516 #340B2D #671659 #992084

Accessibility & contrast

On white

17.05
#340B2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B2D
17.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B2D#FFFFFF#000000##FFFFFF
##340B2D1.0017.051.2317.05
#FFFFFF17.051.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B182E
Deuteranopia (green-blind)
#191E2C
Tritanopia (blue-blind)
#370E1A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340b2d;
/* rgb */ color: rgb(52, 11, 45);
/* oklch */ color: oklch(23.7% 0.081 335.3);
Tailwind
colors: {
  custom: {
    50: '#6d4e66',
    500: '#340b2d',
    950: '#000000',
  },
}
SCSS
$custom: #340b2d;
$custom-light: #6d4e66;
$custom-dark: #000000;
JSON
{
  "hex": "#340b2d",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 45
  },
  "hsl": {
    "h": 310.244,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23687,
    "c": 0.08054,
    "h": 335.3
  },
  "luminance": 0.01159
}

Semantic roles & 50–950 ramp

primary
#340B2D
secondary
#2A7136
accent
#E85C40
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #340B2D

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

Preview Lab → · Contrast checker → · Palette generator →

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