#340B18#340B18

#340B18 is a very dark, moderate pink. Relative luminance 0.010; OKLCH L 22.7% C 0.067 H 4.8°. Best body text is #FFFFFF at 17.40:1 contrast (WCAG AA passes).

Color values

HEX#340B18
RGBrgb(52, 11, 24)
HSLhsl(341, 65%, 12%)
HSVhsv(341, 79%, 20%)
CMYKcmyk(0%, 78.8%, 53.8%, 79.6%)
CIE-LABlab(9.28, 21.79, 2.07)
CIE-LCHlch(9.28, 21.89, 5.43°)
OKLaboklab(22.66% 0.0665 0.0056)
OKLCHoklch(22.66% 0.067 4.8)
XYZxyz(1.7008, 1.0356, 0.9743)
Luminance0.0103 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340B18 #0B3427
analogous
#340B2C #340B18 #34130B
triadic
#340B18 #18340B #0B1834
tetradic
#340B18 #2C340B #0B3427 #130B34
square
#340B18 #2C340B #0B3427 #130B34
split-complementary
#340B18 #0B3413 #0B2C34
monochromatic
#19050C #19050C #340B18 #67162F #992047

Accessibility & contrast

On white

17.40
#340B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340B18
17.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340B18#FFFFFF#000000##FFFFFF
##340B181.0017.401.2117.40
#FFFFFF17.401.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#141518
Deuteranopia (green-blind)
#1F1D17
Tritanopia (blue-blind)
#390610
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #340b18;
/* rgb */ color: rgb(52, 11, 24);
/* oklch */ color: oklch(22.7% 0.067 4.8);
Tailwind
colors: {
  custom: {
    50: '#6e4d54',
    500: '#340b18',
    950: '#000000',
  },
}
SCSS
$custom: #340b18;
$custom-light: #6e4d54;
$custom-dark: #000000;
JSON
{
  "hex": "#340b18",
  "rgb": {
    "r": 52,
    "g": 11,
    "b": 24
  },
  "hsl": {
    "h": 340.976,
    "s": 65.079,
    "l": 12.353
  },
  "oklch": {
    "l": 0.2266,
    "c": 0.06677,
    "h": 4.8
  },
  "luminance": 0.01035
}

Semantic roles & 50–950 ramp

primary
#340B18
secondary
#2A715A
accent
#E8B340
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#070102
muted
#7A7778

Preview Lab

Preview with #340B18

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

Preview Lab → · Contrast checker → · Palette generator →

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