#40050B#40050B

#40050B is a very dark, moderate red. Relative luminance 0.012; OKLCH L 24.1% C 0.088 H 21.7°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#40050B
RGBrgb(64, 5, 11)
HSLhsl(354, 86%, 14%)
HSVhsv(354, 92%, 25%)
CMYKcmyk(0%, 92.2%, 82.8%, 74.9%)
CIE-LABlab(10.73, 27.92, 12.27)
CIE-LCHlch(10.73, 30.50, 23.72°)
OKLaboklab(24.13% 0.0818 0.0326)
OKLCHoklch(24.13% 0.088 21.7)
XYZxyz(2.2293, 1.2231, 0.4352)
Luminance0.0122 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40050B #05403A
analogous
#400528 #40050B #401C05
triadic
#40050B #0B4005 #050B40
tetradic
#40050B #284005 #05403A #1C0540
square
#40050B #284005 #05403A #1C0540
split-complementary
#40050B #05401C #052840
monochromatic
#1C0205 #1C0205 #40050B #790915 #B20E1F

Accessibility & contrast

On white

16.87
#40050B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#40050B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40050B
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40050B#FFFFFF#000000##FFFFFF
##40050B1.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17150B
Deuteranopia (green-blind)
#262109
Tritanopia (blue-blind)
#470008
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40050b;
/* rgb */ color: rgb(64, 5, 11);
/* oklch */ color: oklch(24.1% 0.088 21.7);
Tailwind
colors: {
  custom: {
    50: '#7a4c4b',
    500: '#40050b',
    950: '#000000',
  },
}
SCSS
$custom: #40050b;
$custom-light: #7a4c4b;
$custom-dark: #000000;
JSON
{
  "hex": "#40050b",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 11
  },
  "hsl": {
    "h": 353.898,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24128,
    "c": 0.08802,
    "h": 21.7
  },
  "luminance": 0.01223
}

Semantic roles & 50–950 ramp

primary
#40050B
secondary
#208177
accent
#FCE72C
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40050B

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

Preview Lab → · Contrast checker → · Palette generator →

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