#340502#340502

#340502 is a very dark, moderate red. Relative luminance 0.008; OKLCH L 21.2% C 0.076 H 30.7°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#340502
RGBrgb(52, 5, 2)
HSLhsl(4, 93%, 11%)
HSVhsv(4, 96%, 20%)
CMYKcmyk(0%, 90.4%, 96.2%, 79.6%)
CIE-LABlab(7.62, 23.11, 11.10)
CIE-LCHlch(7.62, 25.63, 25.66°)
OKLaboklab(21.24% 0.0652 0.0387)
OKLCHoklch(21.24% 0.076 30.7)
XYZxyz(1.4816, 0.8432, 0.1422)
Luminance0.0084 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#340502 #023134
analogous
#340218 #340502 #341E02
triadic
#340502 #023405 #050234
tetradic
#340502 #183402 #023134 #1E0234
square
#340502 #183402 #023134 #1E0234
split-complementary
#340502 #02341E #021834
monochromatic
#1D0301 #1D0301 #340502 #6F0B04 #AA1007

Accessibility & contrast

On white

17.97
#340502 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#340502 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #340502
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##340502#FFFFFF#000000##FFFFFF
##3405021.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#131001
Deuteranopia (green-blind)
#1F1B01
Tritanopia (blue-blind)
#3A0005
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #340502;
/* rgb */ color: rgb(52, 5, 2);
/* oklch */ color: oklch(21.2% 0.076 30.7);
Tailwind
colors: {
  custom: {
    50: '#704947',
    500: '#340502',
    950: '#000000',
  },
}
SCSS
$custom: #340502;
$custom-light: #704947;
$custom-dark: #000000;
JSON
{
  "hex": "#340502",
  "rgb": {
    "r": 52,
    "g": 5,
    "b": 2
  },
  "hsl": {
    "h": 3.6,
    "s": 92.593,
    "l": 10.588
  },
  "oklch": {
    "l": 0.21243,
    "c": 0.07582,
    "h": 30.7
  },
  "luminance": 0.00843
}

Semantic roles & 50–950 ramp

primary
#340502
secondary
#1A7278
accent
#F2FF29
background
#F7F4F4
surface
#EDE7E6
border
#C8C3C2
text
#080100
muted
#7B7777

Preview Lab

Preview with #340502

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

Preview Lab → · Contrast checker → · Palette generator →

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