#340D28#340D28

#340D28 is a very dark, moderate pink. Relative luminance 0.012; OKLCH L 23.7% C 0.073 H 341.8°. Best body text is #FFFFFF at 17.02:1 contrast (WCAG AA passes).

Color values

HEX#340D28
RGBrgb(52, 13, 40)
HSLhsl(318, 60%, 13%)
HSVhsv(318, 75%, 20%)
CMYKcmyk(0%, 75%, 23.1%, 79.6%)
CIE-LABlab(10.34, 23.17, -8.48)
CIE-LCHlch(10.34, 24.67, 339.91°)
OKLaboklab(23.67% 0.0691 -0.0227)
OKLCHoklch(23.67% 0.073 341.8)
XYZxyz(1.9432, 1.1713, 2.1308)
Luminance0.0117 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340D28 #0D3419
analogous
#2C0D34 #340D28 #340D14
triadic
#340D28 #28340D #0D2834
tetradic
#340D28 #342C0D #0D3419 #0D1434
square
#340D28 #342C0D #0D3419 #0D1434
split-complementary
#340D28 #14340D #0D342C
monochromatic
#180613 #180613 #340D28 #65194E #962573

Accessibility & contrast

On white

17.02
#340D28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340D28
17.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340D28#FFFFFF#000000##FFFFFF
##340D281.0017.021.2317.02
#FFFFFF17.021.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#101829
Deuteranopia (green-blind)
#1B1E27
Tritanopia (blue-blind)
#380D18
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340d28;
/* rgb */ color: rgb(52, 13, 40);
/* oklch */ color: oklch(23.7% 0.073 341.8);
Tailwind
colors: {
  custom: {
    50: '#6d4f62',
    500: '#340d28',
    950: '#000000',
  },
}
SCSS
$custom: #340d28;
$custom-light: #6d4f62;
$custom-dark: #000000;
JSON
{
  "hex": "#340d28",
  "rgb": {
    "r": 52,
    "g": 13,
    "b": 40
  },
  "hsl": {
    "h": 318.462,
    "s": 60,
    "l": 12.745
  },
  "oklch": {
    "l": 0.23665,
    "c": 0.07277,
    "h": 341.8
  },
  "luminance": 0.01171
}

Semantic roles & 50–950 ramp

primary
#340D28
secondary
#2D6F42
accent
#E37545
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #340D28

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

Preview Lab → · Contrast checker → · Palette generator →

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