#400508#400508

#400508 is a very dark, moderate red. Relative luminance 0.012; OKLCH L 24.1% C 0.088 H 24.4°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#400508
RGBrgb(64, 5, 8)
HSLhsl(357, 86%, 14%)
HSVhsv(357, 92%, 25%)
CMYKcmyk(0%, 92.2%, 87.5%, 74.9%)
CIE-LABlab(10.68, 27.78, 13.43)
CIE-LCHlch(10.68, 30.85, 25.81°)
OKLaboklab(24.08% 0.0804 0.0365)
OKLCHoklch(24.08% 0.088 24.4)
XYZxyz(2.2127, 1.2164, 0.3480)
Luminance0.0122 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400508 #05403D
analogous
#400525 #400508 #401F05
triadic
#400508 #084005 #050840
tetradic
#400508 #254005 #05403D #1F0540
square
#400508 #254005 #05403D #1F0540
split-complementary
#400508 #05401F #052540
monochromatic
#1C0204 #1C0204 #400508 #79090F #B20E16

Accessibility & contrast

On white

16.89
#400508 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400508
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400508#FFFFFF#000000##FFFFFF
##4005081.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#181508
Deuteranopia (green-blind)
#262106
Tritanopia (blue-blind)
#470007
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400508;
/* rgb */ color: rgb(64, 5, 8);
/* oklch */ color: oklch(24.1% 0.088 24.4);
Tailwind
colors: {
  custom: {
    50: '#7a4c4a',
    500: '#400508',
    950: '#000000',
  },
}
SCSS
$custom: #400508;
$custom-light: #7a4c4a;
$custom-dark: #000000;
JSON
{
  "hex": "#400508",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 8
  },
  "hsl": {
    "h": 356.949,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24076,
    "c": 0.08832,
    "h": 24.4
  },
  "luminance": 0.01216
}

Semantic roles & 50–950 ramp

primary
#400508
secondary
#20817C
accent
#FCF12C
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0101
muted
#7C7777

Preview Lab

Preview with #400508

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

Preview Lab → · Contrast checker → · Palette generator →

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