#340F0C#340F0C

#340F0C is a very dark, moderate red. Relative luminance 0.011; OKLCH L 22.9% C 0.061 H 27.5°. Best body text is #FFFFFF at 17.22:1 contrast (WCAG AA passes).

Color values

HEX#340F0C
RGBrgb(52, 15, 12)
HSLhsl(5, 63%, 13%)
HSVhsv(5, 77%, 20%)
CMYKcmyk(0%, 71.2%, 76.9%, 79.6%)
CIE-LABlab(9.79, 18.41, 10.11)
CIE-LCHlch(9.79, 21.00, 28.78°)
OKLaboklab(22.93% 0.0537 0.0279)
OKLCHoklch(22.93% 0.061 27.5)
XYZxyz(1.6535, 1.0985, 0.4727)
Luminance0.0110 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F0C #0C3134
analogous
#340C1D #340F0C #34230C
triadic
#340F0C #0C340F #0F0C34
tetradic
#340F0C #1D340C #0C3134 #230C34
square
#340F0C #1D340C #0C3134 #230C34
split-complementary
#340F0C #0C3423 #0C1D34
monochromatic
#190706 #190706 #340F0C #661D17 #972C23

Accessibility & contrast

On white

17.22
#340F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#340F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340F0C
17.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F0C#FFFFFF#000000##FFFFFF
##340F0C1.0017.221.2217.22
#FFFFFF17.221.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19160B
Deuteranopia (green-blind)
#221E0B
Tritanopia (blue-blind)
#3A080F
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340f0c;
/* rgb */ color: rgb(52, 15, 12);
/* oklch */ color: oklch(22.9% 0.061 27.5);
Tailwind
colors: {
  custom: {
    50: '#6f4f4c',
    500: '#340f0c',
    950: '#000000',
  },
}
SCSS
$custom: #340f0c;
$custom-light: #6f4f4c;
$custom-dark: #000000;
JSON
{
  "hex": "#340f0c",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 12
  },
  "hsl": {
    "h": 4.5,
    "s": 62.5,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22933,
    "c": 0.06055,
    "h": 27.5
  },
  "luminance": 0.01098
}

Semantic roles & 50–950 ramp

primary
#340F0C
secondary
#2C6B70
accent
#D9E642
background
#F6F4F4
surface
#ECE7E7
border
#C7C3C3
text
#080201
muted
#7B7877

Preview Lab

Preview with #340F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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