#400A0F#400A0F

#400A0F is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.8% C 0.082 H 20.8°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#400A0F
RGBrgb(64, 10, 15)
HSLhsl(354, 73%, 15%)
HSVhsv(354, 84%, 25%)
CMYKcmyk(0%, 84.4%, 76.6%, 74.9%)
CIE-LABlab(11.57, 26.00, 11.51)
CIE-LCHlch(11.57, 28.44, 23.88°)
OKLaboklab(24.77% 0.0767 0.0292)
OKLCHoklch(24.77% 0.082 20.8)
XYZxyz(2.3094, 1.3419, 0.5893)
Luminance0.0134 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400A0F #0A403B
analogous
#400A2A #400A0F #40200A
triadic
#400A0F #0F400A #0A0F40
tetradic
#400A0F #2A400A #0A403B #200A40
square
#400A0F #2A400A #0A403B #200A40
split-complementary
#400A0F #0A4020 #0A2A40
monochromatic
#1A0406 #1A0406 #400A0F #75121B #AA1B28

Accessibility & contrast

On white

16.56
#400A0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400A0F
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400A0F#FFFFFF#000000##FFFFFF
##400A0F1.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400a0f;
/* rgb */ color: rgb(64, 10, 15);
/* oklch */ color: oklch(24.8% 0.082 20.8);
Tailwind
colors: {
  custom: {
    50: '#7a4e4d',
    500: '#400a0f',
    950: '#000000',
  },
}
SCSS
$custom: #400a0f;
$custom-light: #7a4e4d;
$custom-dark: #000000;
JSON
{
  "hex": "#400a0f",
  "rgb": {
    "r": 64,
    "g": 10,
    "b": 15
  },
  "hsl": {
    "h": 354.444,
    "s": 72.973,
    "l": 14.51
  },
  "oklch": {
    "l": 0.24773,
    "c": 0.08205,
    "h": 20.8
  },
  "luminance": 0.01342
}

Semantic roles & 50–950 ramp

primary
#400A0F
secondary
#297D75
accent
#F0DF38
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400A0F

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

Preview Lab → · Contrast checker → · Palette generator →

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