#340804#340804

#340804 is a very dark, moderate red. Relative luminance 0.009; OKLCH L 21.7% C 0.071 H 30.6°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#340804
RGBrgb(52, 8, 4)
HSLhsl(5, 86%, 11%)
HSVhsv(5, 92%, 20%)
CMYKcmyk(0%, 84.6%, 92.3%, 79.6%)
CIE-LABlab(8.24, 21.62, 11.20)
CIE-LCHlch(8.24, 24.35, 27.38°)
OKLaboklab(21.73% 0.0614 0.0363)
OKLCHoklch(21.73% 0.071 30.6)
XYZxyz(1.5251, 0.9127, 0.2107)
Luminance0.0091 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340804 #043034
analogous
#340418 #340804 #342004
triadic
#340804 #043408 #080434
tetradic
#340804 #183404 #043034 #200434
square
#340804 #183404 #043034 #200434
split-complementary
#340804 #043420 #041834
monochromatic
#1C0402 #1C0402 #340804 #6D1108 #A6190D

Accessibility & contrast

On white

17.76
#340804 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#340804 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340804
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340804#FFFFFF#000000##FFFFFF
##3408041.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151203
Deuteranopia (green-blind)
#201C03
Tritanopia (blue-blind)
#3A0007
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #340804;
/* rgb */ color: rgb(52, 8, 4);
/* oklch */ color: oklch(21.7% 0.071 30.6);
Tailwind
colors: {
  custom: {
    50: '#6f4b48',
    500: '#340804',
    950: '#000000',
  },
}
SCSS
$custom: #340804;
$custom-light: #6f4b48;
$custom-dark: #000000;
JSON
{
  "hex": "#340804",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 4
  },
  "hsl": {
    "h": 5,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.21727,
    "c": 0.07133,
    "h": 30.6
  },
  "luminance": 0.00912
}

Semantic roles & 50–950 ramp

primary
#340804
secondary
#1E6F76
accent
#EBFC2C
background
#F7F4F4
surface
#EDE7E6
border
#C8C3C2
text
#080100
muted
#7B7777

Preview Lab

Preview with #340804

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

Preview Lab → · Contrast checker → · Palette generator →

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