#340C2B#340C2B

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

Color values

HEX#340C2B
RGBrgb(52, 12, 43)
HSLhsl(314, 63%, 13%)
HSVhsv(314, 77%, 20%)
CMYKcmyk(0%, 76.9%, 17.3%, 79.6%)
CIE-LABlab(10.32, 24.23, -10.75)
CIE-LCHlch(10.32, 26.51, 336.08°)
OKLaboklab(23.7% 0.0714 -0.0291)
OKLCHoklch(23.7% 0.077 337.8)
XYZxyz(1.9837, 1.1676, 2.4059)
Luminance0.0117 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C2B #0C3415
analogous
#290C34 #340C2B #340C17
triadic
#340C2B #2B340C #0C2B34
tetradic
#340C2B #34290C #0C3415 #0C1734
square
#340C2B #34290C #0C3415 #0C1734
split-complementary
#340C2B #17340C #0C3429
monochromatic
#190615 #190615 #340C2B #661754 #97237D

Accessibility & contrast

On white

17.03
#340C2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C2B
17.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C2B#FFFFFF#000000##FFFFFF
##340C2B1.0017.031.2317.03
#FFFFFF17.031.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340c2b;
/* rgb */ color: rgb(52, 12, 43);
/* oklch */ color: oklch(23.7% 0.077 337.8);
Tailwind
colors: {
  custom: {
    50: '#6d4e64',
    500: '#340c2b',
    950: '#000000',
  },
}
SCSS
$custom: #340c2b;
$custom-light: #6d4e64;
$custom-dark: #000000;
JSON
{
  "hex": "#340c2b",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 43
  },
  "hsl": {
    "h": 313.5,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23697,
    "c": 0.07709,
    "h": 337.8
  },
  "luminance": 0.01167
}

Semantic roles & 50–950 ramp

primary
#340C2B
secondary
#2C703B
accent
#E66742
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #340C2B

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

Preview Lab → · Contrast checker → · Palette generator →

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