#340D2A#340D2A

#340D2A is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 23.8% C 0.074 H 339.2°. Best body text is #FFFFFF at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#340D2A
RGBrgb(52, 13, 42)
HSLhsl(315, 60%, 13%)
HSVhsv(315, 75%, 20%)
CMYKcmyk(0%, 75%, 19.2%, 79.6%)
CIE-LABlab(10.45, 23.53, -9.80)
CIE-LCHlch(10.45, 25.49, 337.38°)
OKLaboklab(23.78% 0.0696 -0.0264)
OKLCHoklch(23.78% 0.074 339.2)
XYZxyz(1.9781, 1.1853, 2.3146)
Luminance0.0118 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D2A #0D3417
analogous
#2A0D34 #340D2A #340D16
triadic
#340D2A #2A340D #0D2A34
tetradic
#340D2A #342A0D #0D3417 #0D1634
square
#340D2A #342A0D #0D3417 #0D1634
split-complementary
#340D2A #16340D #0D342A
monochromatic
#180614 #180614 #340D2A #651952 #962579

Accessibility & contrast

On white

16.98
#340D2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340D2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340D2A
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D2A#FFFFFF#000000##FFFFFF
##340D2A1.0016.981.2416.98
#FFFFFF16.981.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F182B
Deuteranopia (green-blind)
#1B1F29
Tritanopia (blue-blind)
#370E19
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340d2a;
/* rgb */ color: rgb(52, 13, 42);
/* oklch */ color: oklch(23.8% 0.074 339.2);
Tailwind
colors: {
  custom: {
    50: '#6d4f63',
    500: '#340d2a',
    950: '#000000',
  },
}
SCSS
$custom: #340d2a;
$custom-light: #6d4f63;
$custom-dark: #000000;
JSON
{
  "hex": "#340d2a",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 42
  },
  "hsl": {
    "h": 315.385,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23776,
    "c": 0.07448,
    "h": 339.2
  },
  "luminance": 0.01185
}

Semantic roles & 50–950 ramp

primary
#340D2A
secondary
#2D6F3E
accent
#E36D45
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #340D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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