#34040C#34040C

#34040C is a very dark, moderate red. Relative luminance 0.008; OKLCH L 21.3% C 0.076 H 16.7°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#34040C
RGBrgb(52, 4, 12)
HSLhsl(350, 86%, 11%)
HSVhsv(350, 92%, 20%)
CMYKcmyk(0%, 92.3%, 76.9%, 79.6%)
CIE-LABlab(7.62, 24.32, 6.99)
CIE-LCHlch(7.62, 25.31, 16.02°)
OKLaboklab(21.31% 0.0726 0.0217)
OKLCHoklch(21.31% 0.076 16.7)
XYZxyz(1.5261, 0.8437, 0.4302)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34040C #04342C
analogous
#340424 #34040C #341404
triadic
#34040C #0C3404 #040C34
tetradic
#34040C #243404 #04342C #140434
square
#34040C #243404 #04342C #140434
split-complementary
#34040C #043414 #042434
monochromatic
#1C0207 #1C0207 #34040C #6D0819 #A60D26

Accessibility & contrast

On white

17.97
#34040C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#34040C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34040C
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34040C#FFFFFF#000000##FFFFFF
##34040C1.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11100C
Deuteranopia (green-blind)
#1E1A0B
Tritanopia (blue-blind)
#3A0007
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #34040c;
/* rgb */ color: rgb(52, 4, 12);
/* oklch */ color: oklch(21.3% 0.076 16.7);
Tailwind
colors: {
  custom: {
    50: '#70494c',
    500: '#34040c',
    950: '#000000',
  },
}
SCSS
$custom: #34040c;
$custom-light: #70494c;
$custom-dark: #000000;
JSON
{
  "hex": "#34040c",
  "rgb": {
    "r": 52,
    "g": 4,
    "b": 12
  },
  "hsl": {
    "h": 350,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21312,
    "c": 0.07581,
    "h": 16.7
  },
  "luminance": 0.00843
}

Semantic roles & 50–950 ramp

primary
#34040C
secondary
#1E7667
accent
#FCD92C
background
#F7F4F4
surface
#EDE7E7
border
#C8C3C3
text
#080101
muted
#7B7777

Preview Lab

Preview with #34040C

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

Preview Lab → · Contrast checker → · Palette generator →

#34040C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva