#402A28#402A28

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

Color values

HEX#402A28
RGBrgb(64, 42, 40)
HSLhsl(5, 23%, 20%)
HSVhsv(5, 38%, 25%)
CMYKcmyk(0%, 34.4%, 37.5%, 74.9%)
CIE-LABlab(19.64, 9.93, 5.43)
CIE-LCHlch(19.64, 11.32, 28.68°)
OKLaboklab(31.1% 0.0302 0.0141)
OKLCHoklch(31.1% 0.033 24.9)
XYZxyz(3.3254, 2.8993, 2.3915)
Luminance0.0290 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A28 #283E40
analogous
#402832 #402A28 #403628
triadic
#402A28 #28402A #2A2840
tetradic
#402A28 #324028 #283E40 #362840
square
#402A28 #324028 #283E40 #362840
split-complementary
#402A28 #284036 #283240
monochromatic
#130C0C #1A1110 #402A28 #664340 #8B5B57

Accessibility & contrast

On white

13.29
#402A28 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#402A28 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A28
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A28#FFFFFF#000000##FFFFFF
##402A281.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E2D28
Deuteranopia (green-blind)
#343128
Tritanopia (blue-blind)
#45272A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #402a28;
/* rgb */ color: rgb(64, 42, 40);
/* oklch */ color: oklch(31.1% 0.033 24.9);
Tailwind
colors: {
  custom: {
    50: '#766361',
    500: '#402a28',
    950: '#000000',
  },
}
SCSS
$custom: #402a28;
$custom-light: #766361;
$custom-dark: #000000;
JSON
{
  "hex": "#402a28",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 40
  },
  "hsl": {
    "h": 5,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.31098,
    "c": 0.03334,
    "h": 24.9
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#402A28
secondary
#526F72
accent
#B8C068
background
#F7F5F5
surface
#EDEAE9
border
#C8C6C5
text
#080505
muted
#7B7979

Preview Lab

Preview with #402A28

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

Preview Lab → · Contrast checker → · Palette generator →

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