#40080F#40080F

#40080F is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.6% C 0.084 H 19.6°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#40080F
RGBrgb(64, 8, 15)
HSLhsl(353, 78%, 14%)
HSVhsv(353, 88%, 25%)
CMYKcmyk(0%, 87.5%, 76.6%, 74.9%)
CIE-LABlab(11.27, 26.84, 11.10)
CIE-LCHlch(11.27, 29.05, 22.46°)
OKLaboklab(24.55% 0.0794 0.0283)
OKLCHoklch(24.55% 0.084 19.6)
XYZxyz(2.2877, 1.2985, 0.5820)
Luminance0.0130 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40080F #084039
analogous
#40082B #40080F #401D08
triadic
#40080F #0F4008 #080F40
tetradic
#40080F #2B4008 #084039 #1D0840
square
#40080F #2B4008 #084039 #1D0840
split-complementary
#40080F #08401D #082B40
monochromatic
#1B0306 #1B0306 #40080F #760F1C #AD1629

Accessibility & contrast

On white

16.67
#40080F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#40080F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40080F
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40080F#FFFFFF#000000##FFFFFF
##40080F1.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18160F
Deuteranopia (green-blind)
#27220D
Tritanopia (blue-blind)
#47000B
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40080f;
/* rgb */ color: rgb(64, 8, 15);
/* oklch */ color: oklch(24.6% 0.084 19.6);
Tailwind
colors: {
  custom: {
    50: '#7a4d4d',
    500: '#40080f',
    950: '#000000',
  },
}
SCSS
$custom: #40080f;
$custom-light: #7a4d4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40080f",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 15
  },
  "hsl": {
    "h": 352.5,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2455,
    "c": 0.08427,
    "h": 19.6
  },
  "luminance": 0.01298
}

Semantic roles & 50–950 ramp

primary
#40080F
secondary
#257E73
accent
#F4DC34
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40080F

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

Preview Lab → · Contrast checker → · Palette generator →

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