#340C2D#340C2D

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

Color values

HEX#340C2D
RGBrgb(52, 12, 45)
HSLhsl(311, 63%, 13%)
HSVhsv(311, 77%, 20%)
CMYKcmyk(0%, 76.9%, 13.5%, 79.6%)
CIE-LABlab(10.43, 24.61, -12.06)
CIE-LCHlch(10.43, 27.41, 333.90°)
OKLaboklab(23.82% 0.0718 -0.0328)
OKLCHoklch(23.82% 0.079 335.4)
XYZxyz(2.0213, 1.1826, 2.6039)
Luminance0.0118 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C2D #0C3413
analogous
#270C34 #340C2D #340C19
triadic
#340C2D #2D340C #0C2D34
tetradic
#340C2D #34270C #0C3413 #0C1934
square
#340C2D #34270C #0C3413 #0C1934
split-complementary
#340C2D #19340C #0C3427
monochromatic
#190616 #190616 #340C2D #661758 #972383

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##340C2D#FFFFFF#000000##FFFFFF
##340C2D1.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)
#0C192E
Deuteranopia (green-blind)
#191E2C
Tritanopia (blue-blind)
#370F1B
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340c2d;
/* rgb */ color: rgb(52, 12, 45);
/* oklch */ color: oklch(23.8% 0.079 335.4);
Tailwind
colors: {
  custom: {
    50: '#6d4e66',
    500: '#340c2d',
    950: '#000000',
  },
}
SCSS
$custom: #340c2d;
$custom-light: #6d4e66;
$custom-dark: #000000;
JSON
{
  "hex": "#340c2d",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 45
  },
  "hsl": {
    "h": 310.5,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23816,
    "c": 0.0789,
    "h": 335.4
  },
  "luminance": 0.01182
}

Semantic roles & 50–950 ramp

primary
#340C2D
secondary
#2C7038
accent
#E65F42
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #340C2D

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

Preview Lab → · Contrast checker → · Palette generator →

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