#340802#340802

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

Color values

HEX#340802
RGBrgb(52, 8, 2)
HSLhsl(7, 93%, 11%)
HSVhsv(7, 96%, 20%)
CMYKcmyk(0%, 84.6%, 96.2%, 79.6%)
CIE-LABlab(8.20, 21.48, 11.96)
CIE-LCHlch(8.20, 24.58, 29.10°)
OKLaboklab(21.69% 0.0601 0.0398)
OKLCHoklch(21.69% 0.072 33.5)
XYZxyz(1.5141, 0.9084, 0.1530)
Luminance0.0091 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340802 #022E34
analogous
#340215 #340802 #342102
triadic
#340802 #023408 #080234
tetradic
#340802 #153402 #022E34 #210234
square
#340802 #153402 #022E34 #210234
split-complementary
#340802 #023421 #021534
monochromatic
#1D0501 #1D0501 #340802 #6F1104 #AA1A07

Accessibility & contrast

On white

17.77
#340802 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340802
17.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340802#FFFFFF#000000##FFFFFF
##3408021.0017.771.1817.77
#FFFFFF17.771.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #340802;
/* rgb */ color: rgb(52, 8, 2);
/* oklch */ color: oklch(21.7% 0.072 33.5);
Tailwind
colors: {
  custom: {
    50: '#6f4b47',
    500: '#340802',
    950: '#000000',
  },
}
SCSS
$custom: #340802;
$custom-light: #6f4b47;
$custom-dark: #000000;
JSON
{
  "hex": "#340802",
  "rgb": {
    "r": 52,
    "g": 8,
    "b": 2
  },
  "hsl": {
    "h": 7.2,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21686,
    "c": 0.0721,
    "h": 33.5
  },
  "luminance": 0.00908
}

Semantic roles & 50–950 ramp

primary
#340802
secondary
#1A6D78
accent
#E5FF29
background
#F7F4F4
surface
#EDE7E6
border
#C8C3C2
text
#080100
muted
#7B7777

Preview Lab

Preview with #340802

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

Preview Lab → · Contrast checker → · Palette generator →

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