#402D2E#402D2E

#402D2E is a dark, muted red. Relative luminance 0.032; OKLCH L 32.0% C 0.028 H 15.3°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#402D2E
RGBrgb(64, 45, 46)
HSLhsl(357, 17%, 21%)
HSVhsv(357, 30%, 25%)
CMYKcmyk(0%, 29.7%, 28.1%, 74.9%)
CIE-LABlab(20.69, 8.92, 2.80)
CIE-LCHlch(20.69, 9.35, 17.40°)
OKLaboklab(31.97% 0.0272 0.0074)
OKLCHoklch(31.97% 0.028 15.3)
XYZxyz(3.5459, 3.1642, 3.0082)
Luminance0.0316 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D2E #2D403F
analogous
#402D38 #402D2E #40362D
triadic
#402D2E #2E402D #2D2E40
tetradic
#402D2E #38402D #2D403F #362D40
square
#402D2E #38402D #2D403F #362D40
split-complementary
#402D2E #2D4036 #2D3840
monochromatic
#120D0D #1C1414 #402D2E #644648 #886062

Accessibility & contrast

On white

12.86
#402D2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#402D2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402D2E
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D2E#FFFFFF#000000##FFFFFF
##402D2E1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30302E
Deuteranopia (green-blind)
#35332E
Tritanopia (blue-blind)
#442B2D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402d2e;
/* rgb */ color: rgb(64, 45, 46);
/* oklch */ color: oklch(32.0% 0.028 15.3);
Tailwind
colors: {
  custom: {
    50: '#756666',
    500: '#402d2e',
    950: '#000000',
  },
}
SCSS
$custom: #402d2e;
$custom-light: #756666;
$custom-dark: #000000;
JSON
{
  "hex": "#402d2e",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 46
  },
  "hsl": {
    "h": 356.842,
    "s": 17.431,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31969,
    "c": 0.02815,
    "h": 15.3
  },
  "luminance": 0.03164
}

Semantic roles & 50–950 ramp

primary
#402D2E
secondary
#58716F
accent
#BAB66E
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080506
muted
#7B7A7A

Preview Lab

Preview with #402D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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