#340B2A#340B2A

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

Color values

HEX#340B2A
RGBrgb(52, 11, 42)
HSLhsl(315, 65%, 12%)
HSVhsv(315, 79%, 20%)
CMYKcmyk(0%, 78.8%, 19.2%, 79.6%)
CIE-LABlab(10.08, 24.54, -10.37)
CIE-LCHlch(10.08, 26.64, 337.10°)
OKLaboklab(23.51% 0.0727 -0.028)
OKLCHoklch(23.51% 0.078 338.9)
XYZxyz(1.9538, 1.1368, 2.3066)
Luminance0.0114 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B2A #0B3415
analogous
#2A0B34 #340B2A #340B16
triadic
#340B2A #2A340B #0B2A34
tetradic
#340B2A #342A0B #0B3415 #0B1634
square
#340B2A #342A0B #0B3415 #0B1634
split-complementary
#340B2A #16340B #0B342A
monochromatic
#190514 #190514 #340B2A #671653 #99207C

Accessibility & contrast

On white

17.11
#340B2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B2A
17.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B2A#FFFFFF#000000##FFFFFF
##340B2A1.0017.111.2317.11
#FFFFFF17.111.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D182B
Deuteranopia (green-blind)
#1A1E29
Tritanopia (blue-blind)
#370C19
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340b2a;
/* rgb */ color: rgb(52, 11, 42);
/* oklch */ color: oklch(23.5% 0.078 338.9);
Tailwind
colors: {
  custom: {
    50: '#6d4e63',
    500: '#340b2a',
    950: '#000000',
  },
}
SCSS
$custom: #340b2a;
$custom-light: #6d4e63;
$custom-dark: #000000;
JSON
{
  "hex": "#340b2a",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 42
  },
  "hsl": {
    "h": 314.634,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.23509,
    "c": 0.07788,
    "h": 338.9
  },
  "luminance": 0.01137
}

Semantic roles & 50–950 ramp

primary
#340B2A
secondary
#2A713B
accent
#E86940
background
#F6F4F5
surface
#ECE7EA
border
#C7C3C6
text
#070105
muted
#7A7779

Preview Lab

Preview with #340B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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