#340C2A#340C2A

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

Color values

HEX#340C2A
RGBrgb(52, 12, 42)
HSLhsl(315, 63%, 13%)
HSVhsv(315, 77%, 20%)
CMYKcmyk(0%, 76.9%, 19.2%, 79.6%)
CIE-LABlab(10.26, 24.04, -10.09)
CIE-LCHlch(10.26, 26.08, 337.23°)
OKLaboklab(23.64% 0.0712 -0.0272)
OKLCHoklch(23.64% 0.076 339.1)
XYZxyz(1.9656, 1.1604, 2.3105)
Luminance0.0116 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C2A #0C3416
analogous
#2A0C34 #340C2A #340C16
triadic
#340C2A #2A340C #0C2A34
tetradic
#340C2A #342A0C #0C3416 #0C1634
square
#340C2A #342A0C #0C3416 #0C1634
split-complementary
#340C2A #16340C #0C342A
monochromatic
#190614 #190614 #340C2A #661752 #97237A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##340C2A#FFFFFF#000000##FFFFFF
##340C2A1.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)
#0E182B
Deuteranopia (green-blind)
#1A1E29
Tritanopia (blue-blind)
#370D19
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340c2a;
/* rgb */ color: rgb(52, 12, 42);
/* oklch */ color: oklch(23.6% 0.076 339.1);
Tailwind
colors: {
  custom: {
    50: '#6d4e63',
    500: '#340c2a',
    950: '#000000',
  },
}
SCSS
$custom: #340c2a;
$custom-light: #6d4e63;
$custom-dark: #000000;
JSON
{
  "hex": "#340c2a",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 42
  },
  "hsl": {
    "h": 315,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.2364,
    "c": 0.0762,
    "h": 339.1
  },
  "luminance": 0.0116
}

Semantic roles & 50–950 ramp

primary
#340C2A
secondary
#2C703D
accent
#E66B42
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #340C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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