#400505#400505

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

Color values

HEX#400505
RGBrgb(64, 5, 5)
HSLhsl(0, 86%, 14%)
HSVhsv(0, 92%, 25%)
CMYKcmyk(0%, 92.2%, 92.2%, 74.9%)
CIE-LABlab(10.63, 27.63, 14.59)
CIE-LCHlch(10.63, 31.25, 27.83°)
OKLaboklab(24.03% 0.079 0.0406)
OKLCHoklch(24.03% 0.089 27.2)
XYZxyz(2.1963, 1.2098, 0.2614)
Luminance0.0121 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400505 #054040
analogous
#400522 #400505 #402205
triadic
#400505 #054005 #050540
tetradic
#400505 #224005 #054040 #220540
square
#400505 #224005 #054040 #220540
split-complementary
#400505 #054022 #052240
monochromatic
#1C0202 #1C0202 #400505 #790909 #B20E0E

Accessibility & contrast

On white

16.91
#400505 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400505
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400505#FFFFFF#000000##FFFFFF
##4005051.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181404
Deuteranopia (green-blind)
#262103
Tritanopia (blue-blind)
#480006
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400505;
/* rgb */ color: rgb(64, 5, 5);
/* oklch */ color: oklch(24.0% 0.089 27.2);
Tailwind
colors: {
  custom: {
    50: '#7a4c49',
    500: '#400505',
    950: '#000000',
  },
}
SCSS
$custom: #400505;
$custom-light: #7a4c49;
$custom-dark: #000000;
JSON
{
  "hex": "#400505",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 5
  },
  "hsl": {
    "h": 0,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24025,
    "c": 0.0888,
    "h": 27.2
  },
  "luminance": 0.01209
}

Semantic roles & 50–950 ramp

primary
#400505
secondary
#208181
accent
#FCFC2C
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400505

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

Preview Lab → · Contrast checker → · Palette generator →

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