#402E2E#402E2E

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

Color values

HEX#402E2E
RGBrgb(64, 46, 46)
HSLhsl(0, 16%, 22%)
HSVhsv(0, 28%, 25%)
CMYKcmyk(0%, 28.1%, 28.1%, 74.9%)
CIE-LABlab(20.99, 8.25, 3.22)
CIE-LCHlch(20.99, 8.86, 21.32°)
OKLaboklab(32.2% 0.0252 0.0085)
OKLCHoklch(32.2% 0.027 18.6)
XYZxyz(3.5845, 3.2414, 3.0211)
Luminance0.0324 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E2E #2E4040
analogous
#402E37 #402E2E #40372E
triadic
#402E2E #2E402E #2E2E40
tetradic
#402E2E #37402E #2E4040 #372E40
square
#402E2E #37402E #2E4040 #372E40
split-complementary
#402E2E #2E4037 #2E3740
monochromatic
#120D0D #1C1414 #402E2E #644848 #876161

Accessibility & contrast

On white

12.74
#402E2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402E2E
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E2E#FFFFFF#000000##FFFFFF
##402E2E1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402e2e;
/* rgb */ color: rgb(64, 46, 46);
/* oklch */ color: oklch(32.2% 0.027 18.6);
Tailwind
colors: {
  custom: {
    50: '#756666',
    500: '#402e2e',
    950: '#000000',
  },
}
SCSS
$custom: #402e2e;
$custom-light: #756666;
$custom-dark: #000000;
JSON
{
  "hex": "#402e2e",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 46
  },
  "hsl": {
    "h": 0,
    "s": 16.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.32198,
    "c": 0.02658,
    "h": 18.6
  },
  "luminance": 0.03241
}

Semantic roles & 50–950 ramp

primary
#402E2E
secondary
#597070
accent
#B9B96F
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080606
muted
#7B7A7A

Preview Lab

Preview with #402E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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