#40070C#40070C

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

Color values

HEX#40070C
RGBrgb(64, 7, 12)
HSLhsl(355, 80%, 14%)
HSVhsv(355, 89%, 25%)
CMYKcmyk(0%, 89.1%, 81.2%, 74.9%)
CIE-LABlab(11.06, 27.10, 12.28)
CIE-LCHlch(11.06, 29.75, 24.39°)
OKLaboklab(24.38% 0.0794 0.0321)
OKLCHoklch(24.38% 0.086 22)
XYZxyz(2.2570, 1.2688, 0.4738)
Luminance0.0127 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40070C #07403B
analogous
#400729 #40070C #401F07
triadic
#40070C #0C4007 #070C40
tetradic
#40070C #294007 #07403B #1F0740
square
#40070C #294007 #07403B #1F0740
split-complementary
#40070C #07401F #072940
monochromatic
#1C0305 #1C0305 #40070C #770D16 #AE1321

Accessibility & contrast

On white

16.75
#40070C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40070C
16.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40070C#FFFFFF#000000##FFFFFF
##40070C1.0016.751.2516.75
#FFFFFF16.751.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40070c;
/* rgb */ color: rgb(64, 7, 12);
/* oklch */ color: oklch(24.4% 0.086 22.0);
Tailwind
colors: {
  custom: {
    50: '#7a4d4c',
    500: '#40070c',
    950: '#000000',
  },
}
SCSS
$custom: #40070c;
$custom-light: #7a4d4c;
$custom-dark: #000000;
JSON
{
  "hex": "#40070c",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 12
  },
  "hsl": {
    "h": 354.737,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24377,
    "c": 0.08562,
    "h": 22
  },
  "luminance": 0.01268
}

Semantic roles & 50–950 ramp

primary
#40070C
secondary
#247F77
accent
#F7E531
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #40070C

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

Preview Lab → · Contrast checker → · Palette generator →

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