#402D2F#402D2F

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

Color values

HEX#402D2F
RGBrgb(64, 45, 47)
HSLhsl(354, 17%, 21%)
HSVhsv(354, 30%, 25%)
CMYKcmyk(0%, 29.7%, 26.6%, 74.9%)
CIE-LABlab(20.72, 9.10, 2.15)
CIE-LCHlch(20.72, 9.36, 13.31°)
OKLaboklab(32% 0.0276 0.0058)
OKLCHoklch(32% 0.028 11.8)
XYZxyz(3.5659, 3.1722, 3.1132)
Luminance0.0317 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D2F #2D403E
analogous
#402D39 #402D2F #40352D
triadic
#402D2F #2F402D #2D2F40
tetradic
#402D2F #39402D #2D403E #352D40
square
#402D2F #39402D #2D403E #352D40
split-complementary
#402D2F #2D4035 #2D3940
monochromatic
#120D0D #1C1415 #402D2F #644649 #886064

Accessibility & contrast

On white

12.85
#402D2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402D2F
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D2F#FFFFFF#000000##FFFFFF
##402D2F1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#30302F
Deuteranopia (green-blind)
#34332F
Tritanopia (blue-blind)
#442B2E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402d2f;
/* rgb */ color: rgb(64, 45, 47);
/* oklch */ color: oklch(32.0% 0.028 11.8);
Tailwind
colors: {
  custom: {
    50: '#756667',
    500: '#402d2f',
    950: '#000000',
  },
}
SCSS
$custom: #402d2f;
$custom-light: #756667;
$custom-dark: #000000;
JSON
{
  "hex": "#402d2f",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 47
  },
  "hsl": {
    "h": 353.684,
    "s": 17.431,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32003,
    "c": 0.02823,
    "h": 11.8
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#402D2F
secondary
#58716E
accent
#BAB26E
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080506
muted
#7B7A7A

Preview Lab

Preview with #402D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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