#402C2E#402C2E

#402C2E is a dark, muted red. Relative luminance 0.031; OKLCH L 31.7% C 0.030 H 12.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#402C2E
RGBrgb(64, 44, 46)
HSLhsl(354, 19%, 21%)
HSVhsv(354, 31%, 25%)
CMYKcmyk(0%, 31.2%, 28.1%, 74.9%)
CIE-LABlab(20.40, 9.60, 2.37)
CIE-LCHlch(20.40, 9.89, 13.90°)
OKLaboklab(31.74% 0.0291 0.0063)
OKLCHoklch(31.74% 0.03 12.3)
XYZxyz(3.5082, 3.0888, 2.9956)
Luminance0.0309 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C2E #2C403E
analogous
#402C38 #402C2E #40342C
triadic
#402C2E #2E402C #2C2E40
tetradic
#402C2E #38402C #2C403E #342C40
square
#402C2E #38402C #2C403E #342C40
split-complementary
#402C2E #2C4034 #2C3840
monochromatic
#120C0D #1C1314 #402C2E #644548 #895E62

Accessibility & contrast

On white

12.98
#402C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#402C2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402C2E
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C2E#FFFFFF#000000##FFFFFF
##402C2E1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2F2E
Deuteranopia (green-blind)
#34332E
Tritanopia (blue-blind)
#442A2D
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402c2e;
/* rgb */ color: rgb(64, 44, 46);
/* oklch */ color: oklch(31.7% 0.030 12.3);
Tailwind
colors: {
  custom: {
    50: '#756566',
    500: '#402c2e',
    950: '#000000',
  },
}
SCSS
$custom: #402c2e;
$custom-light: #756566;
$custom-dark: #000000;
JSON
{
  "hex": "#402c2e",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 46
  },
  "hsl": {
    "h": 354,
    "s": 18.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31743,
    "c": 0.02982,
    "h": 12.3
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#402C2E
secondary
#57716E
accent
#BBB36D
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080506
muted
#7B7A7A

Preview Lab

Preview with #402C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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