#340202#340202

#340202 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 20.8% C 0.080 H 27.9°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#340202
RGBrgb(52, 2, 2)
HSLhsl(0, 93%, 11%)
HSVhsv(0, 96%, 20%)
CMYKcmyk(0%, 96.2%, 96.2%, 79.6%)
CIE-LABlab(7.03, 24.72, 10.24)
CIE-LCHlch(7.03, 26.75, 22.50°)
OKLaboklab(20.78% 0.0707 0.0375)
OKLCHoklch(20.78% 0.08 27.9)
XYZxyz(1.4490, 0.7781, 0.1313)
Luminance0.0078 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340202 #023434
analogous
#34021B #340202 #341B02
triadic
#340202 #023402 #020234
tetradic
#340202 #1B3402 #023434 #1B0234
square
#340202 #1B3402 #023434 #1B0234
split-complementary
#340202 #02341B #021B34
monochromatic
#1D0101 #1D0101 #340202 #6F0404 #AA0707

Accessibility & contrast

On white

18.17
#340202 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #340202
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340202#FFFFFF#000000##FFFFFF
##3402021.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#110E02
Deuteranopia (green-blind)
#1E1A01
Tritanopia (blue-blind)
#3A0003
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #340202;
/* rgb */ color: rgb(52, 2, 2);
/* oklch */ color: oklch(20.8% 0.080 27.9);
Tailwind
colors: {
  custom: {
    50: '#704747',
    500: '#340202',
    950: '#000000',
  },
}
SCSS
$custom: #340202;
$custom-light: #704747;
$custom-dark: #000000;
JSON
{
  "hex": "#340202",
  "rgb": {
    "r": 52,
    "g": 2,
    "b": 2
  },
  "hsl": {
    "h": 0,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.2078,
    "c": 0.08005,
    "h": 27.9
  },
  "luminance": 0.00778
}

Semantic roles & 50–950 ramp

primary
#340202
secondary
#1A7878
accent
#FFFF29
background
#F7F4F4
surface
#EDE6E6
border
#C8C2C2
text
#080000
muted
#7B7777

Preview Lab

Preview with #340202

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

Preview Lab → · Contrast checker → · Palette generator →

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