#402124#402124

#402124 is a dark, muted red. Relative luminance 0.023; OKLCH L 29.0% C 0.048 H 14.3°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#402124
RGBrgb(64, 33, 36)
HSLhsl(354, 32%, 19%)
HSVhsv(354, 48%, 25%)
CMYKcmyk(0%, 48.4%, 43.8%, 74.9%)
CIE-LABlab(17.01, 15.30, 4.53)
CIE-LCHlch(17.01, 15.96, 16.50°)
OKLaboklab(29.05% 0.0464 0.0118)
OKLCHoklch(29.05% 0.048 14.3)
XYZxyz(2.9768, 2.3053, 1.9569)
Luminance0.0231 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402124 #21403D
analogous
#402134 #402124 #402E21
triadic
#402124 #244021 #212440
tetradic
#402124 #344021 #21403D #2E2140
square
#402124 #344021 #21403D #2E2140
split-complementary
#402124 #21402E #213440
monochromatic
#140A0B #180C0D #402124 #68363B #914B51

Accessibility & contrast

On white

14.37
#402124 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#402124 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402124
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402124#FFFFFF#000000##FFFFFF
##4021241.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402124;
/* rgb */ color: rgb(64, 33, 36);
/* oklch */ color: oklch(29.0% 0.048 14.3);
Tailwind
colors: {
  custom: {
    50: '#765d5e',
    500: '#402124',
    950: '#000000',
  },
}
SCSS
$custom: #402124;
$custom-light: #765d5e;
$custom-dark: #000000;
JSON
{
  "hex": "#402124",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 36
  },
  "hsl": {
    "h": 354.194,
    "s": 31.959,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29049,
    "c": 0.04783,
    "h": 14.3
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#402124
secondary
#49746F
accent
#C8BE60
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090404
muted
#7B7979

Preview Lab

Preview with #402124

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

Preview Lab → · Contrast checker → · Palette generator →

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