#340C2C#340C2C

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

Color values

HEX#340C2C
RGBrgb(52, 12, 44)
HSLhsl(312, 63%, 13%)
HSVhsv(312, 77%, 20%)
CMYKcmyk(0%, 76.9%, 15.4%, 79.6%)
CIE-LABlab(10.37, 24.42, -11.40)
CIE-LCHlch(10.37, 26.95, 334.97°)
OKLaboklab(23.76% 0.0716 -0.031)
OKLCHoklch(23.76% 0.078 336.6)
XYZxyz(2.0023, 1.1750, 2.5037)
Luminance0.0118 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C2C #0C3414
analogous
#280C34 #340C2C #340C18
triadic
#340C2C #2C340C #0C2C34
tetradic
#340C2C #34280C #0C3414 #0C1834
square
#340C2C #34280C #0C3414 #0C1834
split-complementary
#340C2C #18340C #0C3428
monochromatic
#190615 #190615 #340C2C #661756 #972380

Accessibility & contrast

On white

17.00
#340C2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C2C
17.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C2C#FFFFFF#000000##FFFFFF
##340C2C1.0017.001.2317.00
#FFFFFF17.001.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D182D
Deuteranopia (green-blind)
#1A1E2B
Tritanopia (blue-blind)
#370E1A
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340c2c;
/* rgb */ color: rgb(52, 12, 44);
/* oklch */ color: oklch(23.8% 0.078 336.6);
Tailwind
colors: {
  custom: {
    50: '#6d4e65',
    500: '#340c2c',
    950: '#000000',
  },
}
SCSS
$custom: #340c2c;
$custom-light: #6d4e65;
$custom-dark: #000000;
JSON
{
  "hex": "#340c2c",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 44
  },
  "hsl": {
    "h": 312,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23756,
    "c": 0.07798,
    "h": 336.6
  },
  "luminance": 0.01175
}

Semantic roles & 50–950 ramp

primary
#340C2C
secondary
#2C7039
accent
#E66342
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #340C2C

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

Preview Lab → · Contrast checker → · Palette generator →

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