#340212#340212

#340212 is a very dark, moderate pink. Relative luminance 0.008; OKLCH L 21.2% C 0.080 H 7.4°. Best body text is #FFFFFF at 18.05:1 contrast (WCAG AA passes).

Color values

HEX#340212
RGBrgb(52, 2, 18)
HSLhsl(341, 93%, 11%)
HSVhsv(341, 96%, 20%)
CMYKcmyk(0%, 96.2%, 65.4%, 79.6%)
CIE-LABlab(7.38, 25.93, 3.45)
CIE-LCHlch(7.38, 26.16, 7.59°)
OKLaboklab(21.18% 0.0793 0.0103)
OKLCHoklch(21.18% 0.08 7.4)
XYZxyz(1.5472, 0.8174, 0.6485)
Luminance0.0082 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340212 #023424
analogous
#34022B #340212 #340B02
triadic
#340212 #123402 #021234
tetradic
#340212 #2B3402 #023424 #0B0234
square
#340212 #2B3402 #023424 #0B0234
split-complementary
#340212 #02340B #022B34
monochromatic
#1D010A #1D010A #340212 #6F0426 #AA073B

Accessibility & contrast

On white

18.05
#340212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#340212 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340212
18.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340212#FFFFFF#000000##FFFFFF
##3402121.0018.051.1618.05
#FFFFFF18.051.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F1012
Deuteranopia (green-blind)
#1C1A11
Tritanopia (blue-blind)
#3A0008
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #340212;
/* rgb */ color: rgb(52, 2, 18);
/* oklch */ color: oklch(21.2% 0.080 7.4);
Tailwind
colors: {
  custom: {
    50: '#6f484f',
    500: '#340212',
    950: '#000000',
  },
}
SCSS
$custom: #340212;
$custom-light: #6f484f;
$custom-dark: #000000;
JSON
{
  "hex": "#340212",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 18
  },
  "hsl": {
    "h": 340.8,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21182,
    "c": 0.07998,
    "h": 7.4
  },
  "luminance": 0.00817
}

Semantic roles & 50–950 ramp

primary
#340212
secondary
#1A785A
accent
#FFBA29
background
#F7F4F4
surface
#EDE6E7
border
#C8C2C3
text
#080102
muted
#7B7778

Preview Lab

Preview with #340212

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

Preview Lab → · Contrast checker → · Palette generator →

#340212 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva