#402224#402224

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

Color values

HEX#402224
RGBrgb(64, 34, 36)
HSLhsl(356, 31%, 19%)
HSVhsv(356, 47%, 25%)
CMYKcmyk(0%, 46.9%, 43.8%, 74.9%)
CIE-LABlab(17.28, 14.65, 4.91)
CIE-LCHlch(17.28, 15.45, 18.53°)
OKLaboklab(29.25% 0.0444 0.0127)
OKLCHoklch(29.25% 0.046 16)
XYZxyz(3.0050, 2.3617, 1.9663)
Luminance0.0236 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402224 #22403E
analogous
#402233 #402224 #402F22
triadic
#402224 #244022 #222440
tetradic
#402224 #334022 #22403E #2F2240
square
#402224 #334022 #22403E #2F2240
split-complementary
#402224 #22402F #223340
monochromatic
#140B0B #180D0E #402224 #68373A #904C51

Accessibility & contrast

On white

14.26
#402224 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402224
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402224#FFFFFF#000000##FFFFFF
##4022241.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#282724
Deuteranopia (green-blind)
#2F2D23
Tritanopia (blue-blind)
#451F23
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #402224;
/* rgb */ color: rgb(64, 34, 36);
/* oklch */ color: oklch(29.3% 0.046 16.0);
Tailwind
colors: {
  custom: {
    50: '#765d5e',
    500: '#402224',
    950: '#000000',
  },
}
SCSS
$custom: #402224;
$custom-light: #765d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#402224",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 36
  },
  "hsl": {
    "h": 356,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29253,
    "c": 0.04614,
    "h": 16
  },
  "luminance": 0.02361
}

Semantic roles & 50–950 ramp

primary
#402224
secondary
#4B7371
accent
#C7C061
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090404
muted
#7B7979

Preview Lab

Preview with #402224

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

Preview Lab → · Contrast checker → · Palette generator →

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