#400C0B#400C0B

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

Color values

HEX#400C0B
RGBrgb(64, 12, 11)
HSLhsl(1, 71%, 15%)
HSVhsv(1, 83%, 25%)
CMYKcmyk(0%, 81.2%, 82.8%, 74.9%)
CIE-LABlab(11.81, 24.90, 13.76)
CIE-LCHlch(11.81, 28.45, 28.93°)
OKLaboklab(24.93% 0.0722 0.0353)
OKLCHoklch(24.93% 0.08 26.1)
XYZxyz(2.3065, 1.3774, 0.4610)
Luminance0.0138 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C0B #0B3F40
analogous
#400B25 #400C0B #40270B
triadic
#400C0B #0B400C #0C0B40
tetradic
#400C0B #25400B #0B3F40 #270B40
square
#400C0B #25400B #0B3F40 #270B40
split-complementary
#400C0B #0B4027 #0B2540
monochromatic
#1A0504 #1A0504 #400C0B #741614 #A8201D

Accessibility & contrast

On white

16.47
#400C0B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#400C0B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C0B
16.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C0B#FFFFFF#000000##FFFFFF
##400C0B1.0016.471.2816.47
#FFFFFF16.471.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400c0b;
/* rgb */ color: rgb(64, 12, 11);
/* oklch */ color: oklch(24.9% 0.080 26.1);
Tailwind
colors: {
  custom: {
    50: '#7a4f4b',
    500: '#400c0b',
    950: '#000000',
  },
}
SCSS
$custom: #400c0b;
$custom-light: #7a4f4b;
$custom-dark: #000000;
JSON
{
  "hex": "#400c0b",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 11
  },
  "hsl": {
    "h": 1.132,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.24931,
    "c": 0.08034,
    "h": 26.1
  },
  "luminance": 0.01377
}

Semantic roles & 50–950 ramp

primary
#400C0B
secondary
#2A7B7D
accent
#EAED3A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400C0B

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

Preview Lab → · Contrast checker → · Palette generator →

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