#402E2F#402E2F

#402E2F is a dark, muted red. Relative luminance 0.032; OKLCH L 32.2% C 0.027 H 14.9°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#402E2F
RGBrgb(64, 46, 47)
HSLhsl(357, 16%, 22%)
HSVhsv(357, 28%, 25%)
CMYKcmyk(0%, 28.1%, 26.6%, 74.9%)
CIE-LABlab(21.02, 8.43, 2.58)
CIE-LCHlch(21.02, 8.82, 17.01°)
OKLaboklab(32.23% 0.0257 0.0069)
OKLCHoklch(32.23% 0.027 14.9)
XYZxyz(3.6045, 3.2494, 3.1261)
Luminance0.0325 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E2F #2E403F
analogous
#402E38 #402E2F #40362E
triadic
#402E2F #2F402E #2E2F40
tetradic
#402E2F #38402E #2E403F #362E40
square
#402E2F #38402E #2E403F #362E40
split-complementary
#402E2F #2E4036 #2E3840
monochromatic
#120D0D #1C1415 #402E2F #644849 #876163

Accessibility & contrast

On white

12.73
#402E2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#402E2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E2F
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E2F#FFFFFF#000000##FFFFFF
##402E2F1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#31312F
Deuteranopia (green-blind)
#35342F
Tritanopia (blue-blind)
#442C2E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402e2f;
/* rgb */ color: rgb(64, 46, 47);
/* oklch */ color: oklch(32.2% 0.027 14.9);
Tailwind
colors: {
  custom: {
    50: '#756667',
    500: '#402e2f',
    950: '#000000',
  },
}
SCSS
$custom: #402e2f;
$custom-light: #756667;
$custom-dark: #000000;
JSON
{
  "hex": "#402e2f",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 47
  },
  "hsl": {
    "h": 356.667,
    "s": 16.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32232,
    "c": 0.02657,
    "h": 14.9
  },
  "luminance": 0.03249
}

Semantic roles & 50–950 ramp

primary
#402E2F
secondary
#59706F
accent
#B9B56F
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080606
muted
#7B7A7A

Preview Lab

Preview with #402E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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