#400412#400412

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

Color values

HEX#400412
RGBrgb(64, 4, 18)
HSLhsl(346, 88%, 13%)
HSVhsv(346, 94%, 25%)
CMYKcmyk(0%, 93.8%, 71.9%, 74.9%)
CIE-LABlab(10.71, 28.80, 8.62)
CIE-LCHlch(10.71, 30.06, 16.66°)
OKLaboklab(24.16% 0.0864 0.022)
OKLCHoklch(24.16% 0.089 14.3)
XYZxyz(2.2672, 1.2208, 0.6884)
Luminance0.0122 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400412 #044032
analogous
#400430 #400412 #401404
triadic
#400412 #124004 #041240
tetradic
#400412 #304004 #044032 #140440
square
#400412 #304004 #044032 #140440
split-complementary
#400412 #044014 #043040
monochromatic
#1D0208 #1D0208 #400412 #7A0822 #B30B32

Accessibility & contrast

On white

16.88
#400412 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400412
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400412#FFFFFF#000000##FFFFFF
##4004121.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161512
Deuteranopia (green-blind)
#252110
Tritanopia (blue-blind)
#47000A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400412;
/* rgb */ color: rgb(64, 4, 18);
/* oklch */ color: oklch(24.2% 0.089 14.3);
Tailwind
colors: {
  custom: {
    50: '#7a4c4f',
    500: '#400412',
    950: '#000000',
  },
}
SCSS
$custom: #400412;
$custom-light: #7a4c4f;
$custom-dark: #000000;
JSON
{
  "hex": "#400412",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 18
  },
  "hsl": {
    "h": 346,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.24161,
    "c": 0.08919,
    "h": 14.3
  },
  "luminance": 0.0122
}

Semantic roles & 50–950 ramp

primary
#400412
secondary
#1F816A
accent
#FECD29
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400412

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

Preview Lab → · Contrast checker → · Palette generator →

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