#400C04#400C04

#400C04 is a very dark, moderate red. Relative luminance 0.014; OKLCH L 24.8% C 0.082 H 32.6°. Best body text is #FFFFFF at 16.50:1 contrast (WCAG AA passes).

Color values

HEX#400C04
RGBrgb(64, 12, 4)
HSLhsl(8, 88%, 13%)
HSVhsv(8, 94%, 25%)
CMYKcmyk(0%, 81.2%, 93.8%, 74.9%)
CIE-LABlab(11.70, 24.54, 16.48)
CIE-LCHlch(11.70, 29.56, 33.89°)
OKLaboklab(24.82% 0.069 0.0442)
OKLCHoklch(24.82% 0.082 32.6)
XYZxyz(2.2680, 1.3621, 0.2583)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C04 #043840
analogous
#40041A #400C04 #402A04
triadic
#400C04 #04400C #0C0440
tetradic
#400C04 #1A4004 #043840 #2A0440
square
#400C04 #1A4004 #043840 #2A0440
split-complementary
#400C04 #04402A #041A40
monochromatic
#1D0502 #1D0502 #400C04 #7A1708 #B3220B

Accessibility & contrast

On white

16.50
#400C04 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#400C04 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C04
16.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C04#FFFFFF#000000##FFFFFF
##400C041.0016.501.2716.50
#FFFFFF16.501.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C1803
Deuteranopia (green-blind)
#292302
Tritanopia (blue-blind)
#47000A
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400c04;
/* rgb */ color: rgb(64, 12, 4);
/* oklch */ color: oklch(24.8% 0.082 32.6);
Tailwind
colors: {
  custom: {
    50: '#7a4f48',
    500: '#400c04',
    950: '#000000',
  },
}
SCSS
$custom: #400c04;
$custom-light: #7a4f48;
$custom-dark: #000000;
JSON
{
  "hex": "#400c04",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 4
  },
  "hsl": {
    "h": 8,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.2482,
    "c": 0.08193,
    "h": 32.6
  },
  "luminance": 0.01362
}

Semantic roles & 50–950 ramp

primary
#400C04
secondary
#1F7481
accent
#E2FE29
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0200
muted
#7C7877

Preview Lab

Preview with #400C04

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

Preview Lab → · Contrast checker → · Palette generator →

#400C04 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva