#340A2C#340A2C

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

Color values

HEX#340A2C
RGBrgb(52, 10, 44)
HSLhsl(311, 68%, 12%)
HSVhsv(311, 81%, 20%)
CMYKcmyk(0%, 80.8%, 15.4%, 79.6%)
CIE-LABlab(10.02, 25.39, -11.95)
CIE-LCHlch(10.02, 28.06, 334.80°)
OKLaboklab(23.5% 0.0745 -0.0325)
OKLCHoklch(23.5% 0.081 336.4)
XYZxyz(1.9794, 1.1292, 2.4961)
Luminance0.0113 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A2C #0A3412
analogous
#270A34 #340A2C #340A17
triadic
#340A2C #2C340A #0A2C34
tetradic
#340A2C #34270A #0A3412 #0A1734
square
#340A2C #34270A #0A3412 #0A1734
split-complementary
#340A2C #17340A #0A3427
monochromatic
#1A0516 #1A0516 #340A2C #671457 #9B1E83

Accessibility & contrast

On white

17.13
#340A2C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A2C
17.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A2C#FFFFFF#000000##FFFFFF
##340A2C1.0017.131.2317.13
#FFFFFF17.131.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B172D
Deuteranopia (green-blind)
#191E2B
Tritanopia (blue-blind)
#370D19
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #340a2c;
/* rgb */ color: rgb(52, 10, 44);
/* oklch */ color: oklch(23.5% 0.081 336.4);
Tailwind
colors: {
  custom: {
    50: '#6d4d65',
    500: '#340a2c',
    950: '#000000',
  },
}
SCSS
$custom: #340a2c;
$custom-light: #6d4d65;
$custom-dark: #000000;
JSON
{
  "hex": "#340a2c",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 44
  },
  "hsl": {
    "h": 311.429,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.23503,
    "c": 0.08123,
    "h": 336.4
  },
  "luminance": 0.01129
}

Semantic roles & 50–950 ramp

primary
#340A2C
secondary
#287136
accent
#EB5E3D
background
#F6F4F6
surface
#ECE7EB
border
#C7C3C6
text
#070105
muted
#7A777A

Preview Lab

Preview with #340A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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