#40070B#40070B

#40070B is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.4% C 0.086 H 22.9°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#40070B
RGBrgb(64, 7, 11)
HSLhsl(356, 80%, 14%)
HSVhsv(356, 89%, 25%)
CMYKcmyk(0%, 89.1%, 82.8%, 74.9%)
CIE-LABlab(11.04, 27.04, 12.70)
CIE-LCHlch(11.04, 29.87, 25.17°)
OKLaboklab(24.36% 0.0789 0.0334)
OKLCHoklch(24.36% 0.086 22.9)
XYZxyz(2.2510, 1.2665, 0.4425)
Luminance0.0127 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40070B #07403C
analogous
#400728 #40070B #402007
triadic
#40070B #0B4007 #070B40
tetradic
#40070B #284007 #07403C #200740
square
#40070B #284007 #07403C #200740
split-complementary
#40070B #074020 #072840
monochromatic
#1C0305 #1C0305 #40070B #770D14 #AE131E

Accessibility & contrast

On white

16.76
#40070B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#40070B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40070B
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40070B#FFFFFF#000000##FFFFFF
##40070B1.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18160B
Deuteranopia (green-blind)
#272209
Tritanopia (blue-blind)
#470009
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40070b;
/* rgb */ color: rgb(64, 7, 11);
/* oklch */ color: oklch(24.4% 0.086 22.9);
Tailwind
colors: {
  custom: {
    50: '#7a4d4b',
    500: '#40070b',
    950: '#000000',
  },
}
SCSS
$custom: #40070b;
$custom-light: #7a4d4b;
$custom-dark: #000000;
JSON
{
  "hex": "#40070b",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 11
  },
  "hsl": {
    "h": 355.789,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24359,
    "c": 0.08571,
    "h": 22.9
  },
  "luminance": 0.01266
}

Semantic roles & 50–950 ramp

primary
#40070B
secondary
#247F79
accent
#F7E931
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40070B

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

Preview Lab → · Contrast checker → · Palette generator →

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