#402022#402022

#402022 is a dark, muted red. Relative luminance 0.022; OKLCH L 28.8% C 0.049 H 16.7°. Best body text is #FFFFFF at 14.50:1 contrast (WCAG AA passes).

Color values

HEX#402022
RGBrgb(64, 32, 34)
HSLhsl(356, 33%, 19%)
HSVhsv(356, 50%, 25%)
CMYKcmyk(0%, 50%, 46.9%, 74.9%)
CIE-LABlab(16.69, 15.67, 5.50)
CIE-LCHlch(16.69, 16.61, 19.34°)
OKLaboklab(28.79% 0.0474 0.0142)
OKLCHoklch(28.79% 0.049 16.7)
XYZxyz(2.9198, 2.2388, 1.7914)
Luminance0.0224 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402022 #20403E
analogous
#402032 #402022 #402E20
triadic
#402022 #224020 #202240
tetradic
#402022 #324020 #20403E #2E2040
square
#402022 #324020 #20403E #2E2040
split-complementary
#402022 #20402E #203240
monochromatic
#140A0B #170C0C #402022 #693438 #92494D

Accessibility & contrast

On white

14.50
#402022 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402022
14.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402022#FFFFFF#000000##FFFFFF
##4020221.0014.501.4514.50
#FFFFFF14.501.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262522
Deuteranopia (green-blind)
#2E2C21
Tritanopia (blue-blind)
#461C21
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #402022;
/* rgb */ color: rgb(64, 32, 34);
/* oklch */ color: oklch(28.8% 0.049 16.7);
Tailwind
colors: {
  custom: {
    50: '#775c5c',
    500: '#402022',
    950: '#000000',
  },
}
SCSS
$custom: #402022;
$custom-light: #775c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#402022",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 34
  },
  "hsl": {
    "h": 356.25,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28786,
    "c": 0.04946,
    "h": 16.7
  },
  "luminance": 0.02239
}

Semantic roles & 50–950 ramp

primary
#402022
secondary
#487471
accent
#C9C35E
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090404
muted
#7B7979

Preview Lab

Preview with #402022

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

Preview Lab → · Contrast checker → · Palette generator →

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