#40040B#40040B

#40040B is a very dark, moderate red. Relative luminance 0.012; OKLCH L 24.0% C 0.089 H 21.1°. Best body text is #FFFFFF at 16.93:1 contrast (WCAG AA passes).

Color values

HEX#40040B
RGBrgb(64, 4, 11)
HSLhsl(353, 88%, 13%)
HSVhsv(353, 94%, 25%)
CMYKcmyk(0%, 93.8%, 82.8%, 74.9%)
CIE-LABlab(10.57, 28.38, 12.05)
CIE-LCHlch(10.57, 30.83, 23.00°)
OKLaboklab(24.01% 0.0832 0.0322)
OKLCHoklch(24.01% 0.089 21.1)
XYZxyz(2.2184, 1.2013, 0.4316)
Luminance0.0120 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40040B #044039
analogous
#400429 #40040B #401B04
triadic
#40040B #0B4004 #040B40
tetradic
#40040B #294004 #044039 #1B0440
square
#40040B #294004 #044039 #1B0440
split-complementary
#40040B #04401B #042940
monochromatic
#1D0205 #1D0205 #40040B #7A0815 #B30B1F

Accessibility & contrast

On white

16.93
#40040B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#40040B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40040B
16.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40040B#FFFFFF#000000##FFFFFF
##40040B1.0016.931.2416.93
#FFFFFF16.931.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17140B
Deuteranopia (green-blind)
#262109
Tritanopia (blue-blind)
#470007
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40040b;
/* rgb */ color: rgb(64, 4, 11);
/* oklch */ color: oklch(24.0% 0.089 21.1);
Tailwind
colors: {
  custom: {
    50: '#7a4b4b',
    500: '#40040b',
    950: '#000000',
  },
}
SCSS
$custom: #40040b;
$custom-light: #7a4b4b;
$custom-dark: #000000;
JSON
{
  "hex": "#40040b",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 11
  },
  "hsl": {
    "h": 353,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2401,
    "c": 0.08922,
    "h": 21.1
  },
  "luminance": 0.01201
}

Semantic roles & 50–950 ramp

primary
#40040B
secondary
#1F8176
accent
#FEE629
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40040B

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

Preview Lab → · Contrast checker → · Palette generator →

#40040B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva