#40050F#40050F

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

Color values

HEX#40050F
RGBrgb(64, 5, 15)
HSLhsl(350, 86%, 14%)
HSVhsv(350, 92%, 25%)
CMYKcmyk(0%, 92.2%, 76.6%, 74.9%)
CIE-LABlab(10.80, 28.15, 10.45)
CIE-LCHlch(10.80, 30.03, 20.37°)
OKLaboklab(24.21% 0.0836 0.027)
OKLCHoklch(24.21% 0.088 17.9)
XYZxyz(2.2551, 1.2334, 0.5712)
Luminance0.0123 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40050F #054036
analogous
#40052C #40050F #401805
triadic
#40050F #0F4005 #050F40
tetradic
#40050F #2C4005 #054036 #180540
square
#40050F #2C4005 #054036 #180540
split-complementary
#40050F #054018 #052C40
monochromatic
#1C0207 #1C0207 #40050F #79091C #B20E2A

Accessibility & contrast

On white

16.85
#40050F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#40050F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40050F
16.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40050F#FFFFFF#000000##FFFFFF
##40050F1.0016.851.2516.85
#FFFFFF16.851.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17150F
Deuteranopia (green-blind)
#26220D
Tritanopia (blue-blind)
#470009
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40050f;
/* rgb */ color: rgb(64, 5, 15);
/* oklch */ color: oklch(24.2% 0.088 17.9);
Tailwind
colors: {
  custom: {
    50: '#7a4c4d',
    500: '#40050f',
    950: '#000000',
  },
}
SCSS
$custom: #40050f;
$custom-light: #7a4c4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40050f",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 15
  },
  "hsl": {
    "h": 349.831,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24207,
    "c": 0.08784,
    "h": 17.9
  },
  "luminance": 0.01233
}

Semantic roles & 50–950 ramp

primary
#40050F
secondary
#208170
accent
#FCD92C
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40050F

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

Preview Lab → · Contrast checker → · Palette generator →

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