#40080C#40080C

#40080C is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.5% C 0.085 H 22.6°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#40080C
RGBrgb(64, 8, 12)
HSLhsl(356, 78%, 14%)
HSVhsv(356, 88%, 25%)
CMYKcmyk(0%, 87.5%, 81.2%, 74.9%)
CIE-LABlab(11.21, 26.66, 12.50)
CIE-LCHlch(11.21, 29.45, 25.12°)
OKLaboklab(24.49% 0.078 0.0325)
OKLCHoklch(24.49% 0.085 22.6)
XYZxyz(2.2678, 1.2906, 0.4774)
Luminance0.0129 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40080C #08403C
analogous
#400828 #40080C #402008
triadic
#40080C #0C4008 #080C40
tetradic
#40080C #284008 #08403C #200840
square
#40080C #284008 #08403C #200840
split-complementary
#40080C #084020 #082840
monochromatic
#1B0305 #1B0305 #40080C #760F16 #AD1620

Accessibility & contrast

On white

16.69
#40080C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40080C
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40080C#FFFFFF#000000##FFFFFF
##40080C1.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19160C
Deuteranopia (green-blind)
#27220A
Tritanopia (blue-blind)
#47000A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40080c;
/* rgb */ color: rgb(64, 8, 12);
/* oklch */ color: oklch(24.5% 0.085 22.6);
Tailwind
colors: {
  custom: {
    50: '#7a4d4c',
    500: '#40080c',
    950: '#000000',
  },
}
SCSS
$custom: #40080c;
$custom-light: #7a4d4c;
$custom-dark: #000000;
JSON
{
  "hex": "#40080c",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 12
  },
  "hsl": {
    "h": 355.714,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24491,
    "c": 0.0845,
    "h": 22.6
  },
  "luminance": 0.0129
}

Semantic roles & 50–950 ramp

primary
#40080C
secondary
#257E78
accent
#F4E734
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40080C

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

Preview Lab → · Contrast checker → · Palette generator →

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