#340A1F#340A1F

#340A1F is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.8% C 0.071 H 353.5°. Best body text is #FFFFFF at 17.37:1 contrast (WCAG AA passes).

Color values

HEX#340A1F
RGBrgb(52, 10, 31)
HSLhsl(330, 68%, 12%)
HSVhsv(330, 81%, 20%)
CMYKcmyk(0%, 80.8%, 40.4%, 79.6%)
CIE-LABlab(9.37, 23.22, -3.16)
CIE-LCHlch(9.37, 23.44, 352.24°)
OKLaboklab(22.81% 0.071 -0.0081)
OKLCHoklch(22.81% 0.071 353.5)
XYZxyz(1.7721, 1.0463, 1.4047)
Luminance0.0105 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A1F #0A341F
analogous
#340A34 #340A1F #340A0A
triadic
#340A1F #1F340A #0A1F34
tetradic
#340A1F #34340A #0A341F #0A0A34
square
#340A1F #34340A #0A341F #0A0A34
split-complementary
#340A1F #0A340A #0A3434
monochromatic
#1A050F #1A050F #340A1F #67143E #9B1E5C

Accessibility & contrast

On white

17.37
#340A1F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#340A1F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340A1F
17.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A1F#FFFFFF#000000##FFFFFF
##340A1F1.0017.371.2117.37
#FFFFFF17.371.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#111520
Deuteranopia (green-blind)
#1D1D1E
Tritanopia (blue-blind)
#390713
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340a1f;
/* rgb */ color: rgb(52, 10, 31);
/* oklch */ color: oklch(22.8% 0.071 353.5);
Tailwind
colors: {
  custom: {
    50: '#6e4d5a',
    500: '#340a1f',
    950: '#000000',
  },
}
SCSS
$custom: #340a1f;
$custom-light: #6e4d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#340a1f",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 31
  },
  "hsl": {
    "h": 330,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22812,
    "c": 0.07147,
    "h": 353.5
  },
  "luminance": 0.01046
}

Semantic roles & 50–950 ramp

primary
#340A1F
secondary
#28714D
accent
#EB943D
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #340A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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