#400B0C#400B0C

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

Color values

HEX#400B0C
RGBrgb(64, 11, 12)
HSLhsl(359, 71%, 15%)
HSVhsv(359, 83%, 25%)
CMYKcmyk(0%, 82.8%, 81.2%, 74.9%)
CIE-LABlab(11.66, 25.40, 13.12)
CIE-LCHlch(11.66, 28.59, 27.33°)
OKLaboklab(24.83% 0.074 0.0337)
OKLCHoklch(24.83% 0.081 24.5)
XYZxyz(2.3006, 1.3562, 0.4884)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B0C #0B403F
analogous
#400B27 #400B0C #40250B
triadic
#400B0C #0C400B #0B0C40
tetradic
#400B0C #27400B #0B403F #250B40
square
#400B0C #27400B #0B403F #250B40
split-complementary
#400B0C #0B4025 #0B2740
monochromatic
#1A0405 #1A0405 #400B0C #741416 #A81D20

Accessibility & contrast

On white

16.52
#400B0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B0C
16.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B0C#FFFFFF#000000##FFFFFF
##400B0C1.0016.521.2716.52
#FFFFFF16.521.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A180B
Deuteranopia (green-blind)
#28230A
Tritanopia (blue-blind)
#47000C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400b0c;
/* rgb */ color: rgb(64, 11, 12);
/* oklch */ color: oklch(24.8% 0.081 24.5);
Tailwind
colors: {
  custom: {
    50: '#7a4f4c',
    500: '#400b0c',
    950: '#000000',
  },
}
SCSS
$custom: #400b0c;
$custom-light: #7a4f4c;
$custom-dark: #000000;
JSON
{
  "hex": "#400b0c",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 12
  },
  "hsl": {
    "h": 358.868,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24829,
    "c": 0.08128,
    "h": 24.5
  },
  "luminance": 0.01356
}

Semantic roles & 50–950 ramp

primary
#400B0C
secondary
#2A7D7B
accent
#EDEA3A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400B0C

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

Preview Lab → · Contrast checker → · Palette generator →

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