#400504#400504

#400504 is a very dark, moderate red. Relative luminance 0.012; OKLCH L 24.0% C 0.089 H 28.1°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#400504
RGBrgb(64, 5, 4)
HSLhsl(1, 88%, 13%)
HSVhsv(1, 94%, 25%)
CMYKcmyk(0%, 92.2%, 93.8%, 74.9%)
CIE-LABlab(10.61, 27.58, 14.97)
CIE-LCHlch(10.61, 31.38, 28.50°)
OKLaboklab(24.01% 0.0785 0.042)
OKLCHoklch(24.01% 0.089 28.1)
XYZxyz(2.1908, 1.2077, 0.2326)
Luminance0.0121 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400504 #043F40
analogous
#400421 #400504 #402304
triadic
#400504 #044005 #050440
tetradic
#400504 #214004 #043F40 #230440
square
#400504 #214004 #043F40 #230440
split-complementary
#400504 #044023 #042140
monochromatic
#1D0202 #1D0202 #400504 #7A0A08 #B30E0B

Accessibility & contrast

On white

16.92
#400504 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#400504 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400504
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400504#FFFFFF#000000##FFFFFF
##4005041.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181403
Deuteranopia (green-blind)
#272102
Tritanopia (blue-blind)
#480005
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400504;
/* rgb */ color: rgb(64, 5, 4);
/* oklch */ color: oklch(24.0% 0.089 28.1);
Tailwind
colors: {
  custom: {
    50: '#7a4c48',
    500: '#400504',
    950: '#000000',
  },
}
SCSS
$custom: #400504;
$custom-light: #7a4c48;
$custom-dark: #000000;
JSON
{
  "hex": "#400504",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 4
  },
  "hsl": {
    "h": 1,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24008,
    "c": 0.08901,
    "h": 28.1
  },
  "luminance": 0.01207
}

Semantic roles & 50–950 ramp

primary
#400504
secondary
#1F8081
accent
#FBFE29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400504

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

Preview Lab → · Contrast checker → · Palette generator →

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