#340C28#340C28

#340C28 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.5% C 0.075 H 341.6°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#340C28
RGBrgb(52, 12, 40)
HSLhsl(318, 63%, 13%)
HSVhsv(318, 77%, 20%)
CMYKcmyk(0%, 76.9%, 23.1%, 79.6%)
CIE-LABlab(10.16, 23.68, -8.77)
CIE-LCHlch(10.16, 25.25, 339.69°)
OKLaboklab(23.53% 0.0707 -0.0235)
OKLCHoklch(23.53% 0.075 341.6)
XYZxyz(1.9307, 1.1464, 2.1267)
Luminance0.0115 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340C28 #0C3418
analogous
#2C0C34 #340C28 #340C14
triadic
#340C28 #28340C #0C2834
tetradic
#340C28 #342C0C #0C3418 #0C1434
square
#340C28 #342C0C #0C3418 #0C1434
split-complementary
#340C28 #14340C #0C342C
monochromatic
#190613 #190613 #340C28 #66174E #972374

Accessibility & contrast

On white

17.08
#340C28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340C28
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340C28#FFFFFF#000000##FFFFFF
##340C281.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340c28;
/* rgb */ color: rgb(52, 12, 40);
/* oklch */ color: oklch(23.5% 0.075 341.6);
Tailwind
colors: {
  custom: {
    50: '#6d4e62',
    500: '#340c28',
    950: '#000000',
  },
}
SCSS
$custom: #340c28;
$custom-light: #6d4e62;
$custom-dark: #000000;
JSON
{
  "hex": "#340c28",
  "rgb": {
    "r": 52,
    "g": 12,
    "b": 40
  },
  "hsl": {
    "h": 318,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.23528,
    "c": 0.07452,
    "h": 341.6
  },
  "luminance": 0.01146
}

Semantic roles & 50–950 ramp

primary
#340C28
secondary
#2C7040
accent
#E67342
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070205
muted
#7A7879

Preview Lab

Preview with #340C28

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

Preview Lab → · Contrast checker → · Palette generator →

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