#400C0A#400C0A

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

Color values

HEX#400C0A
RGBrgb(64, 12, 10)
HSLhsl(2, 73%, 15%)
HSVhsv(2, 84%, 25%)
CMYKcmyk(0%, 81.2%, 84.4%, 74.9%)
CIE-LABlab(11.79, 24.85, 14.16)
CIE-LCHlch(11.79, 28.60, 29.68°)
OKLaboklab(24.91% 0.0717 0.0366)
OKLCHoklch(24.91% 0.081 27)
XYZxyz(2.3009, 1.3752, 0.4314)
Luminance0.0138 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C0A #0A3E40
analogous
#400A23 #400C0A #40270A
triadic
#400C0A #0A400C #0C0A40
tetradic
#400C0A #23400A #0A3E40 #270A40
square
#400C0A #23400A #0A3E40 #270A40
split-complementary
#400C0A #0A4027 #0A2340
monochromatic
#1A0504 #1A0504 #400C0A #751612 #AA201B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##400C0A#FFFFFF#000000##FFFFFF
##400C0A1.0016.471.2716.47
#FFFFFF16.471.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400c0a;
/* rgb */ color: rgb(64, 12, 10);
/* oklch */ color: oklch(24.9% 0.081 27.0);
Tailwind
colors: {
  custom: {
    50: '#7a4f4b',
    500: '#400c0a',
    950: '#000000',
  },
}
SCSS
$custom: #400c0a;
$custom-light: #7a4f4b;
$custom-dark: #000000;
JSON
{
  "hex": "#400c0a",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 10
  },
  "hsl": {
    "h": 2.222,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24914,
    "c": 0.08051,
    "h": 27
  },
  "luminance": 0.01375
}

Semantic roles & 50–950 ramp

primary
#400C0A
secondary
#297A7D
accent
#E9F038
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400C0A

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

Preview Lab → · Contrast checker → · Palette generator →

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