#402A24#402A24

#402A24 is a dark, muted red. Relative luminance 0.029; OKLCH L 31.0% C 0.035 H 35.9°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#402A24
RGBrgb(64, 42, 36)
HSLhsl(13, 28%, 20%)
HSVhsv(13, 44%, 25%)
CMYKcmyk(0%, 34.4%, 43.8%, 74.9%)
CIE-LABlab(19.53, 9.32, 8.04)
CIE-LCHlch(19.53, 12.31, 40.77°)
OKLaboklab(30.98% 0.0283 0.0204)
OKLCHoklch(30.98% 0.035 35.9)
XYZxyz(3.2609, 2.8735, 2.0516)
Luminance0.0287 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A24 #243A40
analogous
#40242C #402A24 #403824
triadic
#402A24 #24402A #2A2440
tetradic
#402A24 #2C4024 #243A40 #382440
square
#402A24 #2C4024 #243A40 #382440
split-complementary
#402A24 #244038 #242C40
monochromatic
#140D0B #19100E #402A24 #67443A #8E5D50

Accessibility & contrast

On white

13.34
#402A24 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#402A24 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A24
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A24#FFFFFF#000000##FFFFFF
##402A241.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2D24
Deuteranopia (green-blind)
#343124
Tritanopia (blue-blind)
#452728
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402a24;
/* rgb */ color: rgb(64, 42, 36);
/* oklch */ color: oklch(31.0% 0.035 35.9);
Tailwind
colors: {
  custom: {
    50: '#76635e',
    500: '#402a24',
    950: '#000000',
  },
}
SCSS
$custom: #402a24;
$custom-light: #76635e;
$custom-dark: #000000;
JSON
{
  "hex": "#402a24",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 36
  },
  "hsl": {
    "h": 12.857,
    "s": 28,
    "l": 19.608
  },
  "oklch": {
    "l": 0.30981,
    "c": 0.03486,
    "h": 35.9
  },
  "luminance": 0.02873
}

Semantic roles & 50–950 ramp

primary
#402A24
secondary
#4D6B73
accent
#B0C463
background
#F7F5F5
surface
#EDEAE9
border
#C8C6C5
text
#080504
muted
#7B7979

Preview Lab

Preview with #402A24

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

Preview Lab → · Contrast checker → · Palette generator →

#402A24 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva