#400C05#400C05

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

Color values

HEX#400C05
RGBrgb(64, 12, 5)
HSLhsl(7, 86%, 14%)
HSVhsv(7, 92%, 25%)
CMYKcmyk(0%, 81.2%, 92.2%, 74.9%)
CIE-LABlab(11.72, 24.59, 16.09)
CIE-LCHlch(11.72, 29.39, 33.20°)
OKLaboklab(24.84% 0.0695 0.0428)
OKLCHoklch(24.84% 0.082 31.7)
XYZxyz(2.2735, 1.3642, 0.2872)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C05 #053940
analogous
#40051B #400C05 #402905
triadic
#400C05 #05400C #0C0540
tetradic
#400C05 #1B4005 #053940 #290540
square
#400C05 #1B4005 #053940 #290540
split-complementary
#400C05 #054029 #051B40
monochromatic
#1C0502 #1C0502 #400C05 #791709 #B2210E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400C05#FFFFFF#000000##FFFFFF
##400C051.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)
#1C1804
Deuteranopia (green-blind)
#282303
Tritanopia (blue-blind)
#47000B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400c05;
/* rgb */ color: rgb(64, 12, 5);
/* oklch */ color: oklch(24.8% 0.082 31.7);
Tailwind
colors: {
  custom: {
    50: '#7a4f49',
    500: '#400c05',
    950: '#000000',
  },
}
SCSS
$custom: #400c05;
$custom-light: #7a4f49;
$custom-dark: #000000;
JSON
{
  "hex": "#400c05",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 5
  },
  "hsl": {
    "h": 7.119,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24836,
    "c": 0.08163,
    "h": 31.7
  },
  "luminance": 0.01364
}

Semantic roles & 50–950 ramp

primary
#400C05
secondary
#207581
accent
#E3FC2C
background
#F7F4F4
surface
#EEE7E6
border
#C9C3C2
text
#0A0200
muted
#7C7877

Preview Lab

Preview with #400C05

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

Preview Lab → · Contrast checker → · Palette generator →

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