#402222#402222

#402222 is a dark, muted red. Relative luminance 0.024; OKLCH L 29.2% C 0.046 H 20.3°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#402222
RGBrgb(64, 34, 34)
HSLhsl(0, 31%, 19%)
HSVhsv(0, 47%, 25%)
CMYKcmyk(0%, 46.9%, 46.9%, 74.9%)
CIE-LABlab(17.23, 14.37, 6.24)
CIE-LCHlch(17.23, 15.67, 23.49°)
OKLaboklab(29.19% 0.0434 0.016)
OKLCHoklch(29.19% 0.046 20.3)
XYZxyz(2.9753, 2.3498, 1.8099)
Luminance0.0235 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402222 #224040
analogous
#402231 #402222 #403122
triadic
#402222 #224022 #222240
tetradic
#402222 #314022 #224040 #312240
square
#402222 #314022 #224040 #312240
split-complementary
#402222 #224031 #223140
monochromatic
#140B0B #180D0D #402222 #683737 #904C4C

Accessibility & contrast

On white

14.29
#402222 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#402222 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402222
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402222#FFFFFF#000000##FFFFFF
##4022221.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282722
Deuteranopia (green-blind)
#2F2D21
Tritanopia (blue-blind)
#451E22
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #402222;
/* rgb */ color: rgb(64, 34, 34);
/* oklch */ color: oklch(29.2% 0.046 20.3);
Tailwind
colors: {
  custom: {
    50: '#765d5c',
    500: '#402222',
    950: '#000000',
  },
}
SCSS
$custom: #402222;
$custom-light: #765d5c;
$custom-dark: #000000;
JSON
{
  "hex": "#402222",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 34
  },
  "hsl": {
    "h": 0,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29192,
    "c": 0.04624,
    "h": 20.3
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#402222
secondary
#4B7373
accent
#C7C761
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090404
muted
#7B7979

Preview Lab

Preview with #402222

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

Preview Lab → · Contrast checker → · Palette generator →

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