#402A2E#402A2E

#402A2E is a dark, muted red. Relative luminance 0.029; OKLCH L 31.3% C 0.033 H 7.2°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#402A2E
RGBrgb(64, 42, 46)
HSLhsl(349, 21%, 21%)
HSVhsv(349, 34%, 25%)
CMYKcmyk(0%, 34.4%, 28.1%, 74.9%)
CIE-LABlab(19.82, 10.94, 1.54)
CIE-LCHlch(19.82, 11.05, 8.00°)
OKLaboklab(31.3% 0.0331 0.0042)
OKLCHoklch(31.3% 0.033 7.2)
XYZxyz(3.4355, 2.9434, 2.9714)
Luminance0.0294 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A2E #2A403C
analogous
#402A39 #402A2E #40312A
triadic
#402A2E #2E402A #2A2E40
tetradic
#402A2E #39402A #2A403C #312A40
square
#402A2E #39402A #2A403C #312A40
split-complementary
#402A2E #2A4031 #2A3940
monochromatic
#120C0D #1B1213 #402A2E #654249 #8A5A63

Accessibility & contrast

On white

13.22
#402A2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#402A2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A2E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A2E#FFFFFF#000000##FFFFFF
##402A2E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2E2E
Deuteranopia (green-blind)
#33312E
Tritanopia (blue-blind)
#44282B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402a2e;
/* rgb */ color: rgb(64, 42, 46);
/* oklch */ color: oklch(31.3% 0.033 7.2);
Tailwind
colors: {
  custom: {
    50: '#756366',
    500: '#402a2e',
    950: '#000000',
  },
}
SCSS
$custom: #402a2e;
$custom-light: #756366;
$custom-dark: #000000;
JSON
{
  "hex": "#402a2e",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 46
  },
  "hsl": {
    "h": 349.091,
    "s": 20.755,
    "l": 20.784
  },
  "oklch": {
    "l": 0.31295,
    "c": 0.03337,
    "h": 7.2
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#402A2E
secondary
#55716C
accent
#BDAE6A
background
#F7F5F6
surface
#EDEAEB
border
#C8C6C6
text
#080506
muted
#7B797A

Preview Lab

Preview with #402A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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