#400704#400704

#400704 is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.2% C 0.087 H 29.4°. Best body text is #FFFFFF at 16.80:1 contrast (WCAG AA passes).

Color values

HEX#400704
RGBrgb(64, 7, 4)
HSLhsl(3, 88%, 13%)
HSVhsv(3, 94%, 25%)
CMYKcmyk(0%, 89.1%, 93.8%, 74.9%)
CIE-LABlab(10.93, 26.69, 15.41)
CIE-LCHlch(10.93, 30.82, 30.01°)
OKLaboklab(24.24% 0.0757 0.0426)
OKLCHoklch(24.24% 0.087 29.4)
XYZxyz(2.2125, 1.2511, 0.2398)
Luminance0.0125 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400704 #043D40
analogous
#40041F #400704 #402504
triadic
#400704 #044007 #070440
tetradic
#400704 #1F4004 #043D40 #250440
square
#400704 #1F4004 #043D40 #250440
split-complementary
#400704 #044025 #041F40
monochromatic
#1D0302 #1D0302 #400704 #7A0D08 #B3140B

Accessibility & contrast

On white

16.80
#400704 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#400704 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400704
16.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400704#FFFFFF#000000##FFFFFF
##4007041.0016.801.2516.80
#FFFFFF16.801.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191503
Deuteranopia (green-blind)
#272202
Tritanopia (blue-blind)
#480007
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400704;
/* rgb */ color: rgb(64, 7, 4);
/* oklch */ color: oklch(24.2% 0.087 29.4);
Tailwind
colors: {
  custom: {
    50: '#7a4d48',
    500: '#400704',
    950: '#000000',
  },
}
SCSS
$custom: #400704;
$custom-light: #7a4d48;
$custom-dark: #000000;
JSON
{
  "hex": "#400704",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 4
  },
  "hsl": {
    "h": 3,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24243,
    "c": 0.08688,
    "h": 29.4
  },
  "luminance": 0.01251
}

Semantic roles & 50–950 ramp

primary
#400704
secondary
#1F7C81
accent
#F4FE29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400704

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

Preview Lab → · Contrast checker → · Palette generator →

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