#40050C#40050C

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

Color values

HEX#40050C
RGBrgb(64, 5, 12)
HSLhsl(353, 86%, 14%)
HSVhsv(353, 92%, 25%)
CMYKcmyk(0%, 92.2%, 81.2%, 74.9%)
CIE-LABlab(10.74, 27.98, 11.85)
CIE-LCHlch(10.74, 30.38, 22.95°)
OKLaboklab(24.15% 0.0822 0.0313)
OKLCHoklch(24.15% 0.088 20.8)
XYZxyz(2.2352, 1.2254, 0.4666)
Luminance0.0123 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40050C #054039
analogous
#400529 #40050C #401B05
triadic
#40050C #0C4005 #050C40
tetradic
#40050C #294005 #054039 #1B0540
square
#40050C #294005 #054039 #1B0540
split-complementary
#40050C #05401B #052940
monochromatic
#1C0205 #1C0205 #40050C #790917 #B20E21

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40050C#FFFFFF#000000##FFFFFF
##40050C1.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)
#17150C
Deuteranopia (green-blind)
#26210A
Tritanopia (blue-blind)
#470008
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #40050c;
/* rgb */ color: rgb(64, 5, 12);
/* oklch */ color: oklch(24.1% 0.088 20.8);
Tailwind
colors: {
  custom: {
    50: '#7a4c4c',
    500: '#40050c',
    950: '#000000',
  },
}
SCSS
$custom: #40050c;
$custom-light: #7a4c4c;
$custom-dark: #000000;
JSON
{
  "hex": "#40050c",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 12
  },
  "hsl": {
    "h": 352.881,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24146,
    "c": 0.08794,
    "h": 20.8
  },
  "luminance": 0.01225
}

Semantic roles & 50–950 ramp

primary
#40050C
secondary
#208175
accent
#FCE32C
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40050C

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

Preview Lab → · Contrast checker → · Palette generator →

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