#340F04#340F04

#340F04 is a very dark, moderate red. Relative luminance 0.011; OKLCH L 22.8% C 0.063 H 38.3°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#340F04
RGBrgb(52, 15, 4)
HSLhsl(14, 86%, 11%)
HSVhsv(14, 92%, 20%)
CMYKcmyk(0%, 71.2%, 92.3%, 79.6%)
CIE-LABlab(9.65, 17.84, 13.22)
CIE-LCHlch(9.65, 22.20, 36.53°)
OKLaboklab(22.78% 0.0497 0.0393)
OKLCHoklch(22.78% 0.063 38.3)
XYZxyz(1.6091, 1.0807, 0.2387)
Luminance0.0108 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340F04 #042934
analogous
#340411 #340F04 #342704
triadic
#340F04 #04340F #0F0434
tetradic
#340F04 #113404 #042934 #270434
square
#340F04 #113404 #042934 #270434
split-complementary
#340F04 #043427 #041134
monochromatic
#1C0802 #1C0802 #340F04 #6D1F08 #A6300D

Accessibility & contrast

On white

17.27
#340F04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340F04
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340F04#FFFFFF#000000##FFFFFF
##340F041.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191603
Deuteranopia (green-blind)
#231E03
Tritanopia (blue-blind)
#3A060C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #340f04;
/* rgb */ color: rgb(52, 15, 4);
/* oklch */ color: oklch(22.8% 0.063 38.3);
Tailwind
colors: {
  custom: {
    50: '#6f4f48',
    500: '#340f04',
    950: '#000000',
  },
}
SCSS
$custom: #340f04;
$custom-light: #6f4f48;
$custom-dark: #000000;
JSON
{
  "hex": "#340f04",
  "rgb": {
    "r": 52,
    "g": 15,
    "b": 4
  },
  "hsl": {
    "h": 13.75,
    "s": 85.714,
    "l": 10.98
  },
  "oklch": {
    "l": 0.22783,
    "c": 0.06337,
    "h": 38.3
  },
  "luminance": 0.0108
}

Semantic roles & 50–950 ramp

primary
#340F04
secondary
#1E6276
accent
#CCFC2C
background
#F6F4F4
surface
#ECE7E6
border
#C7C3C2
text
#080200
muted
#7B7877

Preview Lab

Preview with #340F04

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

Preview Lab → · Contrast checker → · Palette generator →

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