#40070E#40070E

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

Color values

HEX#40070E
RGBrgb(64, 7, 14)
HSLhsl(353, 80%, 14%)
HSVhsv(353, 89%, 25%)
CMYKcmyk(0%, 89.1%, 78.1%, 74.9%)
CIE-LABlab(11.09, 27.21, 11.38)
CIE-LCHlch(11.09, 29.49, 22.69°)
OKLaboklab(24.42% 0.0803 0.0293)
OKLCHoklch(24.42% 0.085 20.1)
XYZxyz(2.2699, 1.2740, 0.5418)
Luminance0.0127 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40070E #074039
analogous
#40072B #40070E #401D07
triadic
#40070E #0E4007 #070E40
tetradic
#40070E #2B4007 #074039 #1D0740
square
#40070E #2B4007 #074039 #1D0740
split-complementary
#40070E #07401D #072B40
monochromatic
#1C0306 #1C0306 #40070E #770D1A #AE1326

Accessibility & contrast

On white

16.74
#40070E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40070E
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40070E#FFFFFF#000000##FFFFFF
##40070E1.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18160E
Deuteranopia (green-blind)
#26220C
Tritanopia (blue-blind)
#47000A
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40070e;
/* rgb */ color: rgb(64, 7, 14);
/* oklch */ color: oklch(24.4% 0.085 20.1);
Tailwind
colors: {
  custom: {
    50: '#7a4d4d',
    500: '#40070e',
    950: '#000000',
  },
}
SCSS
$custom: #40070e;
$custom-light: #7a4d4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40070e",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 14
  },
  "hsl": {
    "h": 352.632,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24416,
    "c": 0.08548,
    "h": 20.1
  },
  "luminance": 0.01274
}

Semantic roles & 50–950 ramp

primary
#40070E
secondary
#247F74
accent
#F7DE31
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40070E

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

Preview Lab → · Contrast checker → · Palette generator →

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