#400C15#400C15

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

Color values

HEX#400C15
RGBrgb(64, 12, 21)
HSLhsl(350, 68%, 15%)
HSVhsv(350, 81%, 25%)
CMYKcmyk(0%, 81.2%, 67.2%, 74.9%)
CIE-LABlab(12.01, 25.59, 8.46)
CIE-LCHlch(12.01, 26.95, 18.30°)
OKLaboklab(25.14% 0.0768 0.021)
OKLCHoklch(25.14% 0.08 15.3)
XYZxyz(2.3814, 1.4074, 0.8556)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C15 #0C4037
analogous
#400C2F #400C15 #401D0C
triadic
#400C15 #15400C #0C1540
tetradic
#400C15 #2F400C #0C4037 #1D0C40
square
#400C15 #2F400C #0C4037 #1D0C40
split-complementary
#400C15 #0C401D #0C2F40
monochromatic
#1A0508 #1A0508 #400C15 #741626 #A71F37

Accessibility & contrast

On white

16.39
#400C15 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C15
16.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C15#FFFFFF#000000##FFFFFF
##400C151.0016.391.2816.39
#FFFFFF16.391.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1915
Deuteranopia (green-blind)
#272314
Tritanopia (blue-blind)
#470210
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400c15;
/* rgb */ color: rgb(64, 12, 21);
/* oklch */ color: oklch(25.1% 0.080 15.3);
Tailwind
colors: {
  custom: {
    50: '#794f52',
    500: '#400c15',
    950: '#000000',
  },
}
SCSS
$custom: #400c15;
$custom-light: #794f52;
$custom-dark: #000000;
JSON
{
  "hex": "#400c15",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 21
  },
  "hsl": {
    "h": 349.615,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25144,
    "c": 0.07959,
    "h": 15.3
  },
  "luminance": 0.01407
}

Semantic roles & 50–950 ramp

primary
#400C15
secondary
#2C7C6E
accent
#EBCD3D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400C15

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

Preview Lab → · Contrast checker → · Palette generator →

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