#340F2C#340F2C

#340F2C is a very dark, moderate pink. Relative luminance 0.013; OKLCH L 24.2% C 0.073 H 336.9°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#340F2C
RGBrgb(52, 15, 44)
HSLhsl(313, 55%, 13%)
HSVhsv(313, 71%, 20%)
CMYKcmyk(0%, 71.2%, 15.4%, 79.6%)
CIE-LABlab(10.95, 22.84, -10.51)
CIE-LCHlch(10.95, 25.14, 335.29°)
OKLaboklab(24.18% 0.0669 -0.0285)
OKLCHoklch(24.18% 0.073 336.9)
XYZxyz(2.0416, 1.2537, 2.5168)
Luminance0.0125 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F2C #0F3417
analogous
#290F34 #340F2C #340F19
triadic
#340F2C #2C340F #0F2C34
tetradic
#340F2C #34290F #0F3417 #0F1934
square
#340F2C #34290F #0F3417 #0F1934
split-complementary
#340F2C #19340F #0F3429
monochromatic
#180714 #180714 #340F2C #631D54 #932A7C

Accessibility & contrast

On white

16.79
#340F2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#340F2C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F2C
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F2C#FFFFFF#000000##FFFFFF
##340F2C1.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101A2D
Deuteranopia (green-blind)
#1B1F2B
Tritanopia (blue-blind)
#37111B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340f2c;
/* rgb */ color: rgb(52, 15, 44);
/* oklch */ color: oklch(24.2% 0.073 336.9);
Tailwind
colors: {
  custom: {
    50: '#6d5065',
    500: '#340f2c',
    950: '#000000',
  },
}
SCSS
$custom: #340f2c;
$custom-light: #6d5065;
$custom-dark: #000000;
JSON
{
  "hex": "#340f2c",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 44
  },
  "hsl": {
    "h": 312.973,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24177,
    "c": 0.07268,
    "h": 336.9
  },
  "luminance": 0.01254
}

Semantic roles & 50–950 ramp

primary
#340F2C
secondary
#316E3E
accent
#DF6A49
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #340F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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