#340402#340402

#340402 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 21.1% C 0.077 H 29.8°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#340402
RGBrgb(52, 4, 2)
HSLhsl(2, 93%, 11%)
HSVhsv(2, 96%, 20%)
CMYKcmyk(0%, 92.3%, 96.2%, 79.6%)
CIE-LABlab(7.42, 23.64, 10.81)
CIE-LCHlch(7.42, 26.00, 24.57°)
OKLaboklab(21.09% 0.067 0.0383)
OKLCHoklch(21.09% 0.077 29.8)
XYZxyz(1.4707, 0.8215, 0.1386)
Luminance0.0082 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340402 #023234
analogous
#340219 #340402 #341D02
triadic
#340402 #023404 #040234
tetradic
#340402 #193402 #023234 #1D0234
square
#340402 #193402 #023234 #1D0234
split-complementary
#340402 #02341D #021934
monochromatic
#1D0201 #1D0201 #340402 #6F0904 #AA0D07

Accessibility & contrast

On white

18.04
#340402 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#340402 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340402
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340402#FFFFFF#000000##FFFFFF
##3404021.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#130F01
Deuteranopia (green-blind)
#1F1A01
Tritanopia (blue-blind)
#3A0004
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #340402;
/* rgb */ color: rgb(52, 4, 2);
/* oklch */ color: oklch(21.1% 0.077 29.8);
Tailwind
colors: {
  custom: {
    50: '#704947',
    500: '#340402',
    950: '#000000',
  },
}
SCSS
$custom: #340402;
$custom-light: #704947;
$custom-dark: #000000;
JSON
{
  "hex": "#340402",
  "rgb": {
    "r": 52,
    "g": 4,
    "b": 2
  },
  "hsl": {
    "h": 2.4,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21091,
    "c": 0.07717,
    "h": 29.8
  },
  "luminance": 0.00821
}

Semantic roles & 50–950 ramp

primary
#340402
secondary
#1A7478
accent
#F6FF29
background
#F7F4F4
surface
#EDE7E6
border
#C8C3C2
text
#080100
muted
#7B7777

Preview Lab

Preview with #340402

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

Preview Lab → · Contrast checker → · Palette generator →

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