#40080B#40080B

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

Color values

HEX#40080B
RGBrgb(64, 8, 11)
HSLhsl(357, 78%, 14%)
HSVhsv(357, 88%, 25%)
CMYKcmyk(0%, 87.5%, 82.8%, 74.9%)
CIE-LABlab(11.19, 26.61, 12.92)
CIE-LCHlch(11.19, 29.58, 25.89°)
OKLaboklab(24.47% 0.0776 0.0338)
OKLCHoklch(24.47% 0.085 23.5)
XYZxyz(2.2619, 1.2882, 0.4461)
Luminance0.0129 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40080B #08403D
analogous
#400827 #40080B #402108
triadic
#40080B #0B4008 #080B40
tetradic
#40080B #274008 #08403D #210840
square
#40080B #274008 #08403D #210840
split-complementary
#40080B #084021 #082740
monochromatic
#1B0305 #1B0305 #40080B #760F14 #AD161E

Accessibility & contrast

On white

16.70
#40080B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40080B
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40080B#FFFFFF#000000##FFFFFF
##40080B1.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40080b;
/* rgb */ color: rgb(64, 8, 11);
/* oklch */ color: oklch(24.5% 0.085 23.5);
Tailwind
colors: {
  custom: {
    50: '#7a4d4b',
    500: '#40080b',
    950: '#000000',
  },
}
SCSS
$custom: #40080b;
$custom-light: #7a4d4b;
$custom-dark: #000000;
JSON
{
  "hex": "#40080b",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 11
  },
  "hsl": {
    "h": 356.786,
    "s": 77.778,
    "l": 14.118
  },
  "oklch": {
    "l": 0.24473,
    "c": 0.08461,
    "h": 23.5
  },
  "luminance": 0.01288
}

Semantic roles & 50–950 ramp

primary
#40080B
secondary
#257E7A
accent
#F4EA34
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40080B

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

Preview Lab → · Contrast checker → · Palette generator →

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