#40040F#40040F

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

Color values

HEX#40040F
RGBrgb(64, 4, 15)
HSLhsl(349, 88%, 13%)
HSVhsv(349, 94%, 25%)
CMYKcmyk(0%, 93.8%, 76.6%, 74.9%)
CIE-LABlab(10.64, 28.60, 10.23)
CIE-LCHlch(10.64, 30.38, 19.69°)
OKLaboklab(24.09% 0.085 0.0266)
OKLCHoklch(24.09% 0.089 17.4)
XYZxyz(2.2442, 1.2117, 0.5676)
Luminance0.0121 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40040F #044035
analogous
#40042D #40040F #401704
triadic
#40040F #0F4004 #040F40
tetradic
#40040F #2D4004 #044035 #170440
square
#40040F #2D4004 #044035 #170440
split-complementary
#40040F #044017 #042D40
monochromatic
#1D0207 #1D0207 #40040F #7A081C #B30B2A

Accessibility & contrast

On white

16.91
#40040F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40040F
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40040F#FFFFFF#000000##FFFFFF
##40040F1.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16150F
Deuteranopia (green-blind)
#25210D
Tritanopia (blue-blind)
#470008
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40040f;
/* rgb */ color: rgb(64, 4, 15);
/* oklch */ color: oklch(24.1% 0.089 17.4);
Tailwind
colors: {
  custom: {
    50: '#7a4b4d',
    500: '#40040f',
    950: '#000000',
  },
}
SCSS
$custom: #40040f;
$custom-light: #7a4b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40040f",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 15
  },
  "hsl": {
    "h": 349,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2409,
    "c": 0.08908,
    "h": 17.4
  },
  "luminance": 0.01211
}

Semantic roles & 50–950 ramp

primary
#40040F
secondary
#1F816F
accent
#FED729
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40040F

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

Preview Lab → · Contrast checker → · Palette generator →

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