#400C12#400C12

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

Color values

HEX#400C12
RGBrgb(64, 12, 18)
HSLhsl(353, 68%, 15%)
HSVhsv(353, 81%, 25%)
CMYKcmyk(0%, 81.2%, 71.9%, 74.9%)
CIE-LABlab(11.94, 25.35, 10.31)
CIE-LCHlch(11.94, 27.37, 22.14°)
OKLaboklab(25.07% 0.0754 0.0256)
OKLCHoklch(25.07% 0.08 18.8)
XYZxyz(2.3552, 1.3969, 0.7178)
Luminance0.0140 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C12 #0C403A
analogous
#400C2C #400C12 #40200C
triadic
#400C12 #12400C #0C1240
tetradic
#400C12 #2C400C #0C403A #200C40
square
#400C12 #2C400C #0C403A #200C40
split-complementary
#400C12 #0C4020 #0C2C40
monochromatic
#1A0507 #1A0507 #400C12 #741620 #A71F2F

Accessibility & contrast

On white

16.41
#400C12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C12
16.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C12#FFFFFF#000000##FFFFFF
##400C121.0016.411.2816.41
#FFFFFF16.411.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1812
Deuteranopia (green-blind)
#272311
Tritanopia (blue-blind)
#47010F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400c12;
/* rgb */ color: rgb(64, 12, 18);
/* oklch */ color: oklch(25.1% 0.080 18.8);
Tailwind
colors: {
  custom: {
    50: '#794f4f',
    500: '#400c12',
    950: '#000000',
  },
}
SCSS
$custom: #400c12;
$custom-light: #794f4f;
$custom-dark: #000000;
JSON
{
  "hex": "#400c12",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 18
  },
  "hsl": {
    "h": 353.077,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2507,
    "c": 0.07959,
    "h": 18.8
  },
  "luminance": 0.01397
}

Semantic roles & 50–950 ramp

primary
#400C12
secondary
#2C7C73
accent
#EBD73D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400C12

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

Preview Lab → · Contrast checker → · Palette generator →

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