#402829#402829

#402829 is a dark, muted red. Relative luminance 0.028; OKLCH L 30.7% C 0.036 H 16.7°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#402829
RGBrgb(64, 40, 41)
HSLhsl(358, 23%, 20%)
HSVhsv(358, 38%, 25%)
CMYKcmyk(0%, 37.5%, 35.9%, 74.9%)
CIE-LABlab(19.09, 11.43, 3.96)
CIE-LCHlch(19.09, 12.10, 19.13°)
OKLaboklab(30.69% 0.0347 0.0104)
OKLCHoklch(30.69% 0.036 16.7)
XYZxyz(3.2735, 2.7679, 2.4592)
Luminance0.0277 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402829 #28403F
analogous
#402835 #402829 #403328
triadic
#402829 #294028 #282940
tetradic
#402829 #354028 #28403F #332840
square
#402829 #354028 #28403F #332840
split-complementary
#402829 #284033 #283540
monochromatic
#130C0C #1A1011 #402829 #664041 #8B5759

Accessibility & contrast

On white

13.52
#402829 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#402829 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402829
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402829#FFFFFF#000000##FFFFFF
##4028291.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C2C29
Deuteranopia (green-blind)
#323029
Tritanopia (blue-blind)
#452628
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #402829;
/* rgb */ color: rgb(64, 40, 41);
/* oklch */ color: oklch(30.7% 0.036 16.7);
Tailwind
colors: {
  custom: {
    50: '#766262',
    500: '#402829',
    950: '#000000',
  },
}
SCSS
$custom: #402829;
$custom-light: #766262;
$custom-dark: #000000;
JSON
{
  "hex": "#402829",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 41
  },
  "hsl": {
    "h": 357.5,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30686,
    "c": 0.03624,
    "h": 16.7
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#402829
secondary
#527270
accent
#C0BC68
background
#F7F5F5
surface
#EDEAEA
border
#C8C6C6
text
#080505
muted
#7B7979

Preview Lab

Preview with #402829

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

Preview Lab → · Contrast checker → · Palette generator →

#402829 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva