#402D30#402D30

#402D30 is a dark, muted red. Relative luminance 0.032; OKLCH L 32.0% C 0.028 H 8.3°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#402D30
RGBrgb(64, 45, 48)
HSLhsl(351, 17%, 21%)
HSVhsv(351, 30%, 25%)
CMYKcmyk(0%, 29.7%, 25%, 74.9%)
CIE-LABlab(20.75, 9.29, 1.51)
CIE-LCHlch(20.75, 9.41, 9.25°)
OKLaboklab(32.04% 0.0281 0.0041)
OKLCHoklch(32.04% 0.028 8.3)
XYZxyz(3.5863, 3.1803, 3.2207)
Luminance0.0318 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D30 #2D403D
analogous
#402D3A #402D30 #40342D
triadic
#402D30 #30402D #2D3040
tetradic
#402D30 #3A402D #2D403D #342D40
square
#402D30 #3A402D #2D403D #342D40
split-complementary
#402D30 #2D4034 #2D3A40
monochromatic
#120D0D #1C1415 #402D30 #64464B #886066

Accessibility & contrast

On white

12.84
#402D30 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402D30
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D30#FFFFFF#000000##FFFFFF
##402D301.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303030
Deuteranopia (green-blind)
#343330
Tritanopia (blue-blind)
#442C2E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #402d30;
/* rgb */ color: rgb(64, 45, 48);
/* oklch */ color: oklch(32.0% 0.028 8.3);
Tailwind
colors: {
  custom: {
    50: '#756668',
    500: '#402d30',
    950: '#000000',
  },
}
SCSS
$custom: #402d30;
$custom-light: #756668;
$custom-dark: #000000;
JSON
{
  "hex": "#402d30",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 48
  },
  "hsl": {
    "h": 350.526,
    "s": 17.431,
    "l": 21.373
  },
  "oklch": {
    "l": 0.32038,
    "c": 0.02841,
    "h": 8.3
  },
  "luminance": 0.0318
}

Semantic roles & 50–950 ramp

primary
#402D30
secondary
#58716D
accent
#BAAE6E
background
#F7F6F6
surface
#EDEBEB
border
#C8C6C6
text
#080506
muted
#7B7A7A

Preview Lab

Preview with #402D30

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

Preview Lab → · Contrast checker → · Palette generator →

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