#400405#400405

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

Color values

HEX#400405
RGBrgb(64, 4, 5)
HSLhsl(359, 88%, 13%)
HSVhsv(359, 94%, 25%)
CMYKcmyk(0%, 93.8%, 92.2%, 74.9%)
CIE-LABlab(10.47, 28.09, 14.36)
CIE-LCHlch(10.47, 31.55, 27.08°)
OKLaboklab(23.91% 0.0804 0.0402)
OKLCHoklch(23.91% 0.09 26.6)
XYZxyz(2.1854, 1.1881, 0.2578)
Luminance0.0119 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400405 #04403F
analogous
#400423 #400405 #402104
triadic
#400405 #054004 #040540
tetradic
#400405 #234004 #04403F #210440
square
#400405 #234004 #04403F #210440
split-complementary
#400405 #044021 #042340
monochromatic
#1D0202 #1D0202 #400405 #7A080A #B30B0E

Accessibility & contrast

On white

16.97
#400405 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400405
16.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400405#FFFFFF#000000##FFFFFF
##4004051.0016.971.2416.97
#FFFFFF16.971.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171404
Deuteranopia (green-blind)
#262103
Tritanopia (blue-blind)
#480005
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #400405;
/* rgb */ color: rgb(64, 4, 5);
/* oklch */ color: oklch(23.9% 0.090 26.6);
Tailwind
colors: {
  custom: {
    50: '#7a4b49',
    500: '#400405',
    950: '#000000',
  },
}
SCSS
$custom: #400405;
$custom-light: #7a4b49;
$custom-dark: #000000;
JSON
{
  "hex": "#400405",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 5
  },
  "hsl": {
    "h": 359,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23907,
    "c": 0.08993,
    "h": 26.6
  },
  "luminance": 0.01188
}

Semantic roles & 50–950 ramp

primary
#400405
secondary
#1F8180
accent
#FEFB29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400405

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

Preview Lab → · Contrast checker → · Palette generator →

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