#400B0B#400B0B

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

Color values

HEX#400B0B
RGBrgb(64, 11, 11)
HSLhsl(0, 71%, 15%)
HSVhsv(0, 83%, 25%)
CMYKcmyk(0%, 82.8%, 82.8%, 74.9%)
CIE-LABlab(11.65, 25.34, 13.54)
CIE-LCHlch(11.65, 28.74, 28.12°)
OKLaboklab(24.81% 0.0736 0.0349)
OKLCHoklch(24.81% 0.081 25.4)
XYZxyz(2.2947, 1.3538, 0.4570)
Luminance0.0135 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B0B #0B4040
analogous
#400B26 #400B0B #40260B
triadic
#400B0B #0B400B #0B0B40
tetradic
#400B0B #26400B #0B4040 #260B40
square
#400B0B #26400B #0B4040 #260B40
split-complementary
#400B0B #0B4026 #0B2640
monochromatic
#1A0404 #1A0404 #400B0B #741414 #A81D1D

Accessibility & contrast

On white

16.53
#400B0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B0B
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B0B#FFFFFF#000000##FFFFFF
##400B0B1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B170A
Deuteranopia (green-blind)
#282309
Tritanopia (blue-blind)
#47000C
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400b0b;
/* rgb */ color: rgb(64, 11, 11);
/* oklch */ color: oklch(24.8% 0.081 25.4);
Tailwind
colors: {
  custom: {
    50: '#7a4f4b',
    500: '#400b0b',
    950: '#000000',
  },
}
SCSS
$custom: #400b0b;
$custom-light: #7a4f4b;
$custom-dark: #000000;
JSON
{
  "hex": "#400b0b",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 11
  },
  "hsl": {
    "h": 0,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24811,
    "c": 0.08142,
    "h": 25.4
  },
  "luminance": 0.01353
}

Semantic roles & 50–950 ramp

primary
#400B0B
secondary
#2A7D7D
accent
#EDED3A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400B0B

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

Preview Lab → · Contrast checker → · Palette generator →

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