#400807#400807

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

Color values

HEX#400807
RGBrgb(64, 8, 7)
HSLhsl(1, 80%, 14%)
HSVhsv(1, 89%, 25%)
CMYKcmyk(0%, 87.5%, 89.1%, 74.9%)
CIE-LABlab(11.13, 26.41, 14.47)
CIE-LCHlch(11.13, 30.11, 28.72°)
OKLaboklab(24.41% 0.0758 0.0389)
OKLCHoklch(24.41% 0.085 27.1)
XYZxyz(2.2398, 1.2794, 0.3300)
Luminance0.0128 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400807 #073F40
analogous
#400723 #400807 #402507
triadic
#400807 #074008 #080740
tetradic
#400807 #234007 #073F40 #250740
square
#400807 #234007 #073F40 #250740
split-complementary
#400807 #074025 #072340
monochromatic
#1C0303 #1C0303 #400807 #770F0D #AE1613

Accessibility & contrast

On white

16.72
#400807 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#400807 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400807
16.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400807#FFFFFF#000000##FFFFFF
##4008071.0016.721.2616.72
#FFFFFF16.721.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191606
Deuteranopia (green-blind)
#272205
Tritanopia (blue-blind)
#470008
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #400807;
/* rgb */ color: rgb(64, 8, 7);
/* oklch */ color: oklch(24.4% 0.085 27.1);
Tailwind
colors: {
  custom: {
    50: '#7a4d49',
    500: '#400807',
    950: '#000000',
  },
}
SCSS
$custom: #400807;
$custom-light: #7a4d49;
$custom-dark: #000000;
JSON
{
  "hex": "#400807",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 7
  },
  "hsl": {
    "h": 1.053,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24407,
    "c": 0.08519,
    "h": 27.1
  },
  "luminance": 0.01279
}

Semantic roles & 50–950 ramp

primary
#400807
secondary
#247E7F
accent
#F3F731
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #400807

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

Preview Lab → · Contrast checker → · Palette generator →

#400807 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva