#340F28#340F28

#340F28 is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 24.0% C 0.069 H 342.3°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#340F28
RGBrgb(52, 15, 40)
HSLhsl(319, 55%, 13%)
HSVhsv(319, 71%, 20%)
CMYKcmyk(0%, 71.2%, 23.1%, 79.6%)
CIE-LABlab(10.74, 22.08, -7.87)
CIE-LCHlch(10.74, 23.44, 340.39°)
OKLaboklab(23.96% 0.0659 -0.021)
OKLCHoklch(23.96% 0.069 342.3)
XYZxyz(1.9701, 1.2251, 2.1398)
Luminance0.0123 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F28 #0F341B
analogous
#2D0F34 #340F28 #340F15
triadic
#340F28 #28340F #0F2834
tetradic
#340F28 #342D0F #0F341B #0F1534
square
#340F28 #342D0F #0F341B #0F1534
split-complementary
#340F28 #15340F #0F342D
monochromatic
#180712 #180712 #340F28 #631D4D #932A71

Accessibility & contrast

On white

16.87
#340F28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#340F28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F28
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F28#FFFFFF#000000##FFFFFF
##340F281.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#121929
Deuteranopia (green-blind)
#1C1F27
Tritanopia (blue-blind)
#380F19
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #340f28;
/* rgb */ color: rgb(52, 15, 40);
/* oklch */ color: oklch(24.0% 0.069 342.3);
Tailwind
colors: {
  custom: {
    50: '#6d5061',
    500: '#340f28',
    950: '#000000',
  },
}
SCSS
$custom: #340f28;
$custom-light: #6d5061;
$custom-dark: #000000;
JSON
{
  "hex": "#340f28",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 40
  },
  "hsl": {
    "h": 319.459,
    "s": 55.224,
    "l": 13.137
  },
  "oklch": {
    "l": 0.23958,
    "c": 0.06914,
    "h": 342.3
  },
  "luminance": 0.01225
}

Semantic roles & 50–950 ramp

primary
#340F28
secondary
#316E45
accent
#DF7A49
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #340F28

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

Preview Lab → · Contrast checker → · Palette generator →

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