#340B28#340B28

#340B28 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.4% C 0.076 H 341.4°. Best body text is #FFFFFF at 17.15:1 contrast (WCAG AA passes).

Color values

HEX#340B28
RGBrgb(52, 11, 40)
HSLhsl(318, 65%, 12%)
HSVhsv(318, 79%, 20%)
CMYKcmyk(0%, 78.8%, 23.1%, 79.6%)
CIE-LABlab(9.98, 24.18, -9.04)
CIE-LCHlch(9.98, 25.82, 339.50°)
OKLaboklab(23.4% 0.0722 -0.0243)
OKLCHoklch(23.4% 0.076 341.4)
XYZxyz(1.9189, 1.1228, 2.1227)
Luminance0.0112 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B28 #0B3417
analogous
#2C0B34 #340B28 #340B14
triadic
#340B28 #28340B #0B2834
tetradic
#340B28 #342C0B #0B3417 #0B1434
square
#340B28 #342C0B #0B3417 #0B1434
split-complementary
#340B28 #14340B #0B342C
monochromatic
#190513 #190513 #340B28 #67164F #992076

Accessibility & contrast

On white

17.15
#340B28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340B28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340B28
17.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B28#FFFFFF#000000##FFFFFF
##340B281.0017.151.2217.15
#FFFFFF17.151.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E1729
Deuteranopia (green-blind)
#1B1E27
Tritanopia (blue-blind)
#380C18
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340b28;
/* rgb */ color: rgb(52, 11, 40);
/* oklch */ color: oklch(23.4% 0.076 341.4);
Tailwind
colors: {
  custom: {
    50: '#6d4e62',
    500: '#340b28',
    950: '#000000',
  },
}
SCSS
$custom: #340b28;
$custom-light: #6d4e62;
$custom-dark: #000000;
JSON
{
  "hex": "#340b28",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 40
  },
  "hsl": {
    "h": 317.561,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23395,
    "c": 0.0762,
    "h": 341.4
  },
  "luminance": 0.01123
}

Semantic roles & 50–950 ramp

primary
#340B28
secondary
#2A713F
accent
#E87140
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #340B28

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

Preview Lab → · Contrast checker → · Palette generator →

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