#40211F#40211F

#40211F is a dark, muted red. Relative luminance 0.023; OKLCH L 28.9% C 0.048 H 24.4°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#40211F
RGBrgb(64, 33, 31)
HSLhsl(4, 35%, 19%)
HSVhsv(4, 52%, 25%)
CMYKcmyk(0%, 48.4%, 51.6%, 74.9%)
CIE-LABlab(16.88, 14.63, 7.88)
CIE-LCHlch(16.88, 16.61, 28.31°)
OKLaboklab(28.9% 0.0439 0.0199)
OKLCHoklch(28.9% 0.048 24.4)
XYZxyz(2.9057, 2.2769, 1.5825)
Luminance0.0228 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40211F #1F3E40
analogous
#401F2D #40211F #40311F
triadic
#40211F #1F4021 #211F40
tetradic
#40211F #2D401F #1F3E40 #311F40
square
#40211F #2D401F #1F3E40 #311F40
split-complementary
#40211F #1F4031 #1F2D40
monochromatic
#150B0A #170C0B #40211F #693633 #924C47

Accessibility & contrast

On white

14.43
#40211F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#40211F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40211F
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40211F#FFFFFF#000000##FFFFFF
##40211F1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28261F
Deuteranopia (green-blind)
#2F2C1E
Tritanopia (blue-blind)
#461D21
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40211f;
/* rgb */ color: rgb(64, 33, 31);
/* oklch */ color: oklch(28.9% 0.048 24.4);
Tailwind
colors: {
  custom: {
    50: '#775d5a',
    500: '#40211f',
    950: '#000000',
  },
}
SCSS
$custom: #40211f;
$custom-light: #775d5a;
$custom-dark: #000000;
JSON
{
  "hex": "#40211f",
  "rgb": {
    "r": 64,
    "g": 33,
    "b": 31
  },
  "hsl": {
    "h": 3.636,
    "s": 34.737,
    "l": 18.627
  },
  "oklch": {
    "l": 0.289,
    "c": 0.04823,
    "h": 24.4
  },
  "luminance": 0.02277
}

Semantic roles & 50–950 ramp

primary
#40211F
secondary
#477174
accent
#C4CB5D
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090403
muted
#7B7978

Preview Lab

Preview with #40211F

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

Preview Lab → · Contrast checker → · Palette generator →

#40211F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva