#402E2B#402E2B

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

Color values

HEX#402E2B
RGBrgb(64, 46, 43)
HSLhsl(9, 20%, 21%)
HSVhsv(9, 33%, 25%)
CMYKcmyk(0%, 28.1%, 32.8%, 74.9%)
CIE-LABlab(20.90, 7.73, 5.15)
CIE-LCHlch(20.90, 9.29, 33.66°)
OKLaboklab(32.1% 0.0237 0.0134)
OKLCHoklch(32.1% 0.027 29.4)
XYZxyz(3.5275, 3.2186, 2.7205)
Luminance0.0322 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E2B #2B3D40
analogous
#402B32 #402E2B #40382B
triadic
#402E2B #2B402E #2E2B40
tetradic
#402E2B #32402B #2B3D40 #382B40
square
#402E2B #32402B #2B3D40 #382B40
split-complementary
#402E2B #2B4038 #2B3240
monochromatic
#120D0C #1B1412 #402E2B #654844 #89635C

Accessibility & contrast

On white

12.78
#402E2B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#402E2B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E2B
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E2B#FFFFFF#000000##FFFFFF
##402E2B1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#32302B
Deuteranopia (green-blind)
#36342B
Tritanopia (blue-blind)
#442C2D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402e2b;
/* rgb */ color: rgb(64, 46, 43);
/* oklch */ color: oklch(32.1% 0.027 29.4);
Tailwind
colors: {
  custom: {
    50: '#756664',
    500: '#402e2b',
    950: '#000000',
  },
}
SCSS
$custom: #402e2b;
$custom-light: #756664;
$custom-dark: #000000;
JSON
{
  "hex": "#402e2b",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 43
  },
  "hsl": {
    "h": 8.571,
    "s": 19.626,
    "l": 20.98
  },
  "oklch": {
    "l": 0.32102,
    "c": 0.02724,
    "h": 29.4
  },
  "luminance": 0.03218
}

Semantic roles & 50–950 ramp

primary
#402E2B
secondary
#566D71
accent
#B1BC6C
background
#F7F6F5
surface
#EDEBEA
border
#C8C6C6
text
#080605
muted
#7B7A79

Preview Lab

Preview with #402E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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