#400B0F#400B0F

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

Color values

HEX#400B0F
RGBrgb(64, 11, 15)
HSLhsl(355, 71%, 15%)
HSVhsv(355, 83%, 25%)
CMYKcmyk(0%, 82.8%, 76.6%, 74.9%)
CIE-LABlab(11.72, 25.58, 11.72)
CIE-LCHlch(11.72, 28.14, 24.62°)
OKLaboklab(24.89% 0.0753 0.0296)
OKLCHoklch(24.89% 0.081 21.4)
XYZxyz(2.3205, 1.3642, 0.5930)
Luminance0.0136 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B0F #0B403C
analogous
#400B2A #400B0F #40220B
triadic
#400B0F #0F400B #0B0F40
tetradic
#400B0F #2A400B #0B403C #220B40
square
#400B0F #2A400B #0B403C #220B40
split-complementary
#400B0F #0B4022 #0B2A40
monochromatic
#1A0406 #1A0406 #400B0F #74141B #A81D27

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400B0F#FFFFFF#000000##FFFFFF
##400B0F1.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)
#1A180F
Deuteranopia (green-blind)
#27230D
Tritanopia (blue-blind)
#47000D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400b0f;
/* rgb */ color: rgb(64, 11, 15);
/* oklch */ color: oklch(24.9% 0.081 21.4);
Tailwind
colors: {
  custom: {
    50: '#7a4f4d',
    500: '#400b0f',
    950: '#000000',
  },
}
SCSS
$custom: #400b0f;
$custom-light: #7a4f4d;
$custom-dark: #000000;
JSON
{
  "hex": "#400b0f",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 15
  },
  "hsl": {
    "h": 355.472,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24886,
    "c": 0.08094,
    "h": 21.4
  },
  "luminance": 0.01364
}

Semantic roles & 50–950 ramp

primary
#400B0F
secondary
#2A7D76
accent
#EDE03A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400B0F

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

Preview Lab → · Contrast checker → · Palette generator →

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