#400B0E#400B0E

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

Color values

HEX#400B0E
RGBrgb(64, 11, 14)
HSLhsl(357, 71%, 15%)
HSVhsv(357, 83%, 25%)
CMYKcmyk(0%, 82.8%, 78.1%, 74.9%)
CIE-LABlab(11.70, 25.51, 12.21)
CIE-LCHlch(11.70, 28.29, 25.58°)
OKLaboklab(24.87% 0.0749 0.031)
OKLCHoklch(24.87% 0.081 22.5)
XYZxyz(2.3135, 1.3614, 0.5563)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B0E #0B403D
analogous
#400B29 #400B0E #40230B
triadic
#400B0E #0E400B #0B0E40
tetradic
#400B0E #29400B #0B403D #230B40
square
#400B0E #29400B #0B403D #230B40
split-complementary
#400B0E #0B4023 #0B2940
monochromatic
#1A0406 #1A0406 #400B0E #741419 #A81D25

Accessibility & contrast

On white

16.51
#400B0E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B0E
16.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B0E#FFFFFF#000000##FFFFFF
##400B0E1.0016.511.2716.51
#FFFFFF16.511.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A180E
Deuteranopia (green-blind)
#27230C
Tritanopia (blue-blind)
#47000D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400b0e;
/* rgb */ color: rgb(64, 11, 14);
/* oklch */ color: oklch(24.9% 0.081 22.5);
Tailwind
colors: {
  custom: {
    50: '#7a4f4d',
    500: '#400b0e',
    950: '#000000',
  },
}
SCSS
$custom: #400b0e;
$custom-light: #7a4f4d;
$custom-dark: #000000;
JSON
{
  "hex": "#400b0e",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 14
  },
  "hsl": {
    "h": 356.604,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24866,
    "c": 0.08104,
    "h": 22.5
  },
  "luminance": 0.01361
}

Semantic roles & 50–950 ramp

primary
#400B0E
secondary
#2A7D78
accent
#EDE33A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400B0E

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

Preview Lab → · Contrast checker → · Palette generator →

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