#400406#400406

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

Color values

HEX#400406
RGBrgb(64, 4, 6)
HSLhsl(358, 88%, 13%)
HSVhsv(358, 94%, 25%)
CMYKcmyk(0%, 93.8%, 90.6%, 74.9%)
CIE-LABlab(10.49, 28.14, 13.98)
CIE-LCHlch(10.49, 31.42, 26.42°)
OKLaboklab(23.92% 0.0809 0.0388)
OKLCHoklch(23.92% 0.09 25.6)
XYZxyz(2.1909, 1.1903, 0.2867)
Luminance0.0119 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400406 #04403E
analogous
#400424 #400406 #402004
triadic
#400406 #064004 #040640
tetradic
#400406 #244004 #04403E #200440
square
#400406 #244004 #04403E #200440
split-complementary
#400406 #044020 #042440
monochromatic
#1D0203 #1D0203 #400406 #7A080B #B30B11

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400406#FFFFFF#000000##FFFFFF
##4004061.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)
#171405
Deuteranopia (green-blind)
#262104
Tritanopia (blue-blind)
#480005
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #400406;
/* rgb */ color: rgb(64, 4, 6);
/* oklch */ color: oklch(23.9% 0.090 25.6);
Tailwind
colors: {
  custom: {
    50: '#7a4b49',
    500: '#400406',
    950: '#000000',
  },
}
SCSS
$custom: #400406;
$custom-light: #7a4b49;
$custom-dark: #000000;
JSON
{
  "hex": "#400406",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 6
  },
  "hsl": {
    "h": 358,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.23924,
    "c": 0.08975,
    "h": 25.6
  },
  "luminance": 0.0119
}

Semantic roles & 50–950 ramp

primary
#400406
secondary
#1F817E
accent
#FEF729
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0100
muted
#7C7777

Preview Lab

Preview with #400406

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

Preview Lab → · Contrast checker → · Palette generator →

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