#402020#402020

#402020 is a dark, muted red. Relative luminance 0.022; OKLCH L 28.7% C 0.050 H 20.6°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#402020
RGBrgb(64, 32, 32)
HSLhsl(0, 33%, 19%)
HSVhsv(0, 50%, 25%)
CMYKcmyk(0%, 50%, 50%, 74.9%)
CIE-LABlab(16.64, 15.40, 6.84)
CIE-LCHlch(16.64, 16.86, 23.95°)
OKLaboklab(28.73% 0.0464 0.0174)
OKLCHoklch(28.73% 0.05 20.6)
XYZxyz(2.8917, 2.2276, 1.6439)
Luminance0.0223 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402020 #204040
analogous
#402030 #402020 #403020
triadic
#402020 #204020 #202040
tetradic
#402020 #304020 #204040 #302040
square
#402020 #304020 #204040 #302040
split-complementary
#402020 #204030 #203040
monochromatic
#140A0A #170C0C #402020 #693434 #924949

Accessibility & contrast

On white

14.53
#402020 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#402020 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402020
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402020#FFFFFF#000000##FFFFFF
##4020201.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272520
Deuteranopia (green-blind)
#2F2C1F
Tritanopia (blue-blind)
#461C20
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #402020;
/* rgb */ color: rgb(64, 32, 32);
/* oklch */ color: oklch(28.7% 0.050 20.6);
Tailwind
colors: {
  custom: {
    50: '#775c5b',
    500: '#402020',
    950: '#000000',
  },
}
SCSS
$custom: #402020;
$custom-light: #775c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#402020",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 32
  },
  "hsl": {
    "h": 0,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28726,
    "c": 0.04958,
    "h": 20.6
  },
  "luminance": 0.02227
}

Semantic roles & 50–950 ramp

primary
#402020
secondary
#487474
accent
#C9C95E
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090404
muted
#7B7979

Preview Lab

Preview with #402020

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

Preview Lab → · Contrast checker → · Palette generator →

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