#40040E#40040E

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

Color values

HEX#40040E
RGBrgb(64, 4, 14)
HSLhsl(350, 88%, 13%)
HSVhsv(350, 94%, 25%)
CMYKcmyk(0%, 93.8%, 78.1%, 74.9%)
CIE-LABlab(10.62, 28.54, 10.72)
CIE-LCHlch(10.62, 30.49, 20.59°)
OKLaboklab(24.07% 0.0846 0.028)
OKLCHoklch(24.07% 0.089 18.3)
XYZxyz(2.2373, 1.2089, 0.5309)
Luminance0.0121 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40040E #044036
analogous
#40042C #40040E #401804
triadic
#40040E #0E4004 #040E40
tetradic
#40040E #2C4004 #044036 #180440
square
#40040E #2C4004 #044036 #180440
split-complementary
#40040E #044018 #042C40
monochromatic
#1D0206 #1D0206 #40040E #7A081B #B30B27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40040E#FFFFFF#000000##FFFFFF
##40040E1.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)
#16150E
Deuteranopia (green-blind)
#25210C
Tritanopia (blue-blind)
#470008
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40040e;
/* rgb */ color: rgb(64, 4, 14);
/* oklch */ color: oklch(24.1% 0.089 18.3);
Tailwind
colors: {
  custom: {
    50: '#7a4b4d',
    500: '#40040e',
    950: '#000000',
  },
}
SCSS
$custom: #40040e;
$custom-light: #7a4b4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40040e",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 14
  },
  "hsl": {
    "h": 350,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24069,
    "c": 0.08909,
    "h": 18.3
  },
  "luminance": 0.01209
}

Semantic roles & 50–950 ramp

primary
#40040E
secondary
#1F8171
accent
#FEDB29
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40040E

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

Preview Lab → · Contrast checker → · Palette generator →

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