#340A1E#340A1E

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

Color values

HEX#340A1E
RGBrgb(52, 10, 30)
HSLhsl(331, 68%, 12%)
HSVhsv(331, 81%, 20%)
CMYKcmyk(0%, 80.8%, 42.3%, 79.6%)
CIE-LABlab(9.33, 23.08, -2.46)
CIE-LCHlch(9.33, 23.21, 353.91°)
OKLaboklab(22.77% 0.0706 -0.0062)
OKLCHoklch(22.77% 0.071 355)
XYZxyz(1.7592, 1.0411, 1.3364)
Luminance0.0104 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340A1E #0A3420
analogous
#340A33 #340A1E #340B0A
triadic
#340A1E #1E340A #0A1E34
tetradic
#340A1E #33340A #0A3420 #0B0A34
square
#340A1E #33340A #0A3420 #0B0A34
split-complementary
#340A1E #0A340B #0A3334
monochromatic
#1A050F #1A050F #340A1E #67143C #9B1E59

Accessibility & contrast

On white

17.38
#340A1E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340A1E
17.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340A1E#FFFFFF#000000##FFFFFF
##340A1E1.0017.381.2117.38
#FFFFFF17.381.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11151F
Deuteranopia (green-blind)
#1D1D1D
Tritanopia (blue-blind)
#390712
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340a1e;
/* rgb */ color: rgb(52, 10, 30);
/* oklch */ color: oklch(22.8% 0.071 355.0);
Tailwind
colors: {
  custom: {
    50: '#6e4d59',
    500: '#340a1e',
    950: '#000000',
  },
}
SCSS
$custom: #340a1e;
$custom-light: #6e4d59;
$custom-dark: #000000;
JSON
{
  "hex": "#340a1e",
  "rgb": {
    "r": 52,
    "g": 10,
    "b": 30
  },
  "hsl": {
    "h": 331.429,
    "s": 67.742,
    "l": 12.157
  },
  "oklch": {
    "l": 0.22767,
    "c": 0.07091,
    "h": 355
  },
  "luminance": 0.01041
}

Semantic roles & 50–950 ramp

primary
#340A1E
secondary
#28714F
accent
#EB983D
background
#F6F4F5
surface
#ECE7E9
border
#C7C3C5
text
#070103
muted
#7A7778

Preview Lab

Preview with #340A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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