#400C0F#400C0F

#400C0F is a dark, moderate red. Relative luminance 0.014; OKLCH L 25.0% C 0.080 H 22.1°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#400C0F
RGBrgb(64, 12, 15)
HSLhsl(357, 68%, 15%)
HSVhsv(357, 81%, 25%)
CMYKcmyk(0%, 81.2%, 76.6%, 74.9%)
CIE-LABlab(11.88, 25.14, 11.94)
CIE-LCHlch(11.88, 27.83, 25.40°)
OKLaboklab(25% 0.0739 0.03)
OKLCHoklch(25% 0.08 22.1)
XYZxyz(2.3323, 1.3878, 0.5969)
Luminance0.0139 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C0F #0C403D
analogous
#400C29 #400C0F #40230C
triadic
#400C0F #0F400C #0C0F40
tetradic
#400C0F #29400C #0C403D #230C40
square
#400C0F #29400C #0C403D #230C40
split-complementary
#400C0F #0C4023 #0C2940
monochromatic
#1A0506 #1A0506 #400C0F #74161B #A71F27

Accessibility & contrast

On white

16.44
#400C0F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C0F
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C0F#FFFFFF#000000##FFFFFF
##400C0F1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B180F
Deuteranopia (green-blind)
#28230D
Tritanopia (blue-blind)
#47000E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400c0f;
/* rgb */ color: rgb(64, 12, 15);
/* oklch */ color: oklch(25.0% 0.080 22.1);
Tailwind
colors: {
  custom: {
    50: '#7a4f4d',
    500: '#400c0f',
    950: '#000000',
  },
}
SCSS
$custom: #400c0f;
$custom-light: #7a4f4d;
$custom-dark: #000000;
JSON
{
  "hex": "#400c0f",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 15
  },
  "hsl": {
    "h": 356.538,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25004,
    "c": 0.0798,
    "h": 22.1
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#400C0F
secondary
#2C7C77
accent
#EBE13D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400C0F

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

Preview Lab → · Contrast checker → · Palette generator →

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