#400407#400407

#400407 is a very dark, moderate red. Relative luminance 0.012; OKLCH L 23.9% C 0.090 H 24.7°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#400407
RGBrgb(64, 4, 7)
HSLhsl(357, 88%, 13%)
HSVhsv(357, 94%, 25%)
CMYKcmyk(0%, 93.8%, 89.1%, 74.9%)
CIE-LABlab(10.50, 28.18, 13.59)
CIE-LCHlch(10.50, 31.29, 25.75°)
OKLaboklab(23.94% 0.0814 0.0374)
OKLCHoklch(23.94% 0.09 24.7)
XYZxyz(2.1964, 1.1925, 0.3155)
Luminance0.0119 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400407 #04403D
analogous
#400425 #400407 #401F04
triadic
#400407 #074004 #040740
tetradic
#400407 #254004 #04403D #1F0440
square
#400407 #254004 #04403D #1F0440
split-complementary
#400407 #04401F #042540
monochromatic
#1D0203 #1D0203 #400407 #7A080D #B30B14

Accessibility & contrast

On white

16.96
#400407 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400407
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400407#FFFFFF#000000##FFFFFF
##4004071.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171407
Deuteranopia (green-blind)
#262105
Tritanopia (blue-blind)
#470006
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #400407;
/* rgb */ color: rgb(64, 4, 7);
/* oklch */ color: oklch(23.9% 0.090 24.7);
Tailwind
colors: {
  custom: {
    50: '#7a4b49',
    500: '#400407',
    950: '#000000',
  },
}
SCSS
$custom: #400407;
$custom-light: #7a4b49;
$custom-dark: #000000;
JSON
{
  "hex": "#400407",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 7
  },
  "hsl": {
    "h": 357,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23941,
    "c": 0.08961,
    "h": 24.7
  },
  "luminance": 0.01192
}

Semantic roles & 50–950 ramp

primary
#400407
secondary
#1F817C
accent
#FEF429
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #400407

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

Preview Lab → · Contrast checker → · Palette generator →

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