#340A28#340A28

#340A28 is a very dark, moderate pink. Relative luminance 0.011; OKLCH L 23.3% C 0.078 H 341.2°. Best body text is #FFFFFF at 17.21:1 contrast (WCAG AA passes).

Color values

HEX#340A28
RGBrgb(52, 10, 40)
HSLhsl(317, 68%, 12%)
HSVhsv(317, 81%, 20%)
CMYKcmyk(0%, 80.8%, 23.1%, 79.6%)
CIE-LABlab(9.80, 24.67, -9.31)
CIE-LCHlch(9.80, 26.37, 339.32°)
OKLaboklab(23.27% 0.0737 -0.025)
OKLCHoklch(23.27% 0.078 341.2)
XYZxyz(1.9078, 1.1005, 2.1190)
Luminance0.0110 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A28 #0A3416
analogous
#2B0A34 #340A28 #340A13
triadic
#340A28 #28340A #0A2834
tetradic
#340A28 #342B0A #0A3416 #0A1334
square
#340A28 #342B0A #0A3416 #0A1334
split-complementary
#340A28 #13340A #0A342B
monochromatic
#1A0514 #1A0514 #340A28 #67144F #9B1E77

Accessibility & contrast

On white

17.21
#340A28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A28
17.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A28#FFFFFF#000000##FFFFFF
##340A281.0017.211.2217.21
#FFFFFF17.211.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D1729
Deuteranopia (green-blind)
#1A1E27
Tritanopia (blue-blind)
#380B17
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340a28;
/* rgb */ color: rgb(52, 10, 40);
/* oklch */ color: oklch(23.3% 0.078 341.2);
Tailwind
colors: {
  custom: {
    50: '#6d4d62',
    500: '#340a28',
    950: '#000000',
  },
}
SCSS
$custom: #340a28;
$custom-light: #6d4d62;
$custom-dark: #000000;
JSON
{
  "hex": "#340a28",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 40
  },
  "hsl": {
    "h": 317.143,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23269,
    "c": 0.07781,
    "h": 341.2
  },
  "luminance": 0.011
}

Semantic roles & 50–950 ramp

primary
#340A28
secondary
#28713D
accent
#EB6F3D
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #340A28

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

Preview Lab → · Contrast checker → · Palette generator →

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