#340F2D#340F2D

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

Color values

HEX#340F2D
RGBrgb(52, 15, 45)
HSLhsl(311, 55%, 13%)
HSVhsv(311, 71%, 20%)
CMYKcmyk(0%, 71.2%, 13.5%, 79.6%)
CIE-LABlab(11.00, 23.03, -11.16)
CIE-LCHlch(11.00, 25.60, 334.14°)
OKLaboklab(24.24% 0.0671 -0.0303)
OKLCHoklch(24.24% 0.074 335.7)
XYZxyz(2.0607, 1.2613, 2.6170)
Luminance0.0126 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F2D #0F3416
analogous
#280F34 #340F2D #340F1A
triadic
#340F2D #2D340F #0F2D34
tetradic
#340F2D #34280F #0F3416 #0F1A34
square
#340F2D #34280F #0F3416 #0F1A34
split-complementary
#340F2D #1A340F #0F3428
monochromatic
#180715 #180715 #340F2D #631D56 #932A7F

Accessibility & contrast

On white

16.77
#340F2D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F2D
16.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F2D#FFFFFF#000000##FFFFFF
##340F2D1.0016.771.2516.77
#FFFFFF16.771.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1A2E
Deuteranopia (green-blind)
#1B202C
Tritanopia (blue-blind)
#37111C
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340f2d;
/* rgb */ color: rgb(52, 15, 45);
/* oklch */ color: oklch(24.2% 0.074 335.7);
Tailwind
colors: {
  custom: {
    50: '#6d5066',
    500: '#340f2d',
    950: '#000000',
  },
}
SCSS
$custom: #340f2d;
$custom-light: #6d5066;
$custom-dark: #000000;
JSON
{
  "hex": "#340f2d",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 45
  },
  "hsl": {
    "h": 311.351,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24235,
    "c": 0.07362,
    "h": 335.7
  },
  "luminance": 0.01261
}

Semantic roles & 50–950 ramp

primary
#340F2D
secondary
#316E3C
accent
#DF6549
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070205
muted
#7A787A

Preview Lab

Preview with #340F2D

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

Preview Lab → · Contrast checker → · Palette generator →

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