#40231E#40231E

#40231E is a dark, muted red. Relative luminance 0.024; OKLCH L 29.3% C 0.046 H 30.5°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#40231E
RGBrgb(64, 35, 30)
HSLhsl(9, 36%, 18%)
HSVhsv(9, 53%, 25%)
CMYKcmyk(0%, 45.3%, 53.1%, 74.9%)
CIE-LABlab(17.40, 13.18, 9.28)
CIE-LCHlch(17.40, 16.12, 35.15°)
OKLaboklab(29.29% 0.0394 0.0233)
OKLCHoklch(29.29% 0.046 30.5)
XYZxyz(2.9499, 2.3861, 1.5332)
Luminance0.0239 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40231E #1E3B40
analogous
#401E2A #40231E #40341E
triadic
#40231E #1E4023 #231E40
tetradic
#40231E #2A401E #1E3B40 #341E40
square
#40231E #2A401E #1E3B40 #341E40
split-complementary
#40231E #1E4034 #1E2A40
monochromatic
#150B0A #160C0A #40231E #6A3A32 #935145

Accessibility & contrast

On white

14.22
#40231E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#40231E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40231E
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40231E#FFFFFF#000000##FFFFFF
##40231E1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A271E
Deuteranopia (green-blind)
#312D1E
Tritanopia (blue-blind)
#461F22
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #40231e;
/* rgb */ color: rgb(64, 35, 30);
/* oklch */ color: oklch(29.3% 0.046 30.5);
Tailwind
colors: {
  custom: {
    50: '#775e59',
    500: '#40231e',
    950: '#000000',
  },
}
SCSS
$custom: #40231e;
$custom-light: #775e59;
$custom-dark: #000000;
JSON
{
  "hex": "#40231e",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 30
  },
  "hsl": {
    "h": 8.824,
    "s": 36.17,
    "l": 18.431
  },
  "oklch": {
    "l": 0.29288,
    "c": 0.04575,
    "h": 30.5
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#40231E
secondary
#456E74
accent
#BCCC5C
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090403
muted
#7B7978

Preview Lab

Preview with #40231E

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

Preview Lab → · Contrast checker → · Palette generator →

#40231E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva