#402024#402024

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

Color values

HEX#402024
RGBrgb(64, 32, 36)
HSLhsl(353, 33%, 19%)
HSVhsv(353, 50%, 25%)
CMYKcmyk(0%, 50%, 43.8%, 74.9%)
CIE-LABlab(16.75, 15.95, 4.16)
CIE-LCHlch(16.75, 16.49, 14.62°)
OKLaboklab(28.85% 0.0483 0.0109)
OKLCHoklch(28.85% 0.05 12.7)
XYZxyz(2.9494, 2.2506, 1.9478)
Luminance0.0225 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402024 #20403C
analogous
#402034 #402024 #402C20
triadic
#402024 #244020 #202440
tetradic
#402024 #344020 #20403C #2C2040
square
#402024 #344020 #20403C #2C2040
split-complementary
#402024 #20402C #203440
monochromatic
#140A0B #170C0D #402024 #69343B #924952

Accessibility & contrast

On white

14.48
#402024 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402024
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402024#FFFFFF#000000##FFFFFF
##4020241.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#262624
Deuteranopia (green-blind)
#2E2C23
Tritanopia (blue-blind)
#451D21
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #402024;
/* rgb */ color: rgb(64, 32, 36);
/* oklch */ color: oklch(28.8% 0.050 12.7);
Tailwind
colors: {
  custom: {
    50: '#765c5e',
    500: '#402024',
    950: '#000000',
  },
}
SCSS
$custom: #402024;
$custom-light: #765c5e;
$custom-dark: #000000;
JSON
{
  "hex": "#402024",
  "rgb": {
    "r": 64,
    "g": 32,
    "b": 36
  },
  "hsl": {
    "h": 352.5,
    "s": 33.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28849,
    "c": 0.04955,
    "h": 12.7
  },
  "luminance": 0.0225
}

Semantic roles & 50–950 ramp

primary
#402024
secondary
#48746E
accent
#C9BC5E
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090404
muted
#7B7979

Preview Lab

Preview with #402024

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

Preview Lab → · Contrast checker → · Palette generator →

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