#400D12#400D12

#400D12 is a dark, moderate red. Relative luminance 0.014; OKLCH L 25.2% C 0.078 H 19.5°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#400D12
RGBrgb(64, 13, 18)
HSLhsl(354, 66%, 15%)
HSVhsv(354, 80%, 25%)
CMYKcmyk(0%, 79.7%, 71.9%, 74.9%)
CIE-LABlab(12.10, 24.90, 10.54)
CIE-LCHlch(12.10, 27.04, 22.94°)
OKLaboklab(25.19% 0.0739 0.0261)
OKLCHoklch(25.19% 0.078 19.5)
XYZxyz(2.3677, 1.4218, 0.7219)
Luminance0.0142 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D12 #0D403B
analogous
#400D2B #400D12 #40220D
triadic
#400D12 #12400D #0D1240
tetradic
#400D12 #2B400D #0D403B #220D40
square
#400D12 #2B400D #0D403B #220D40
split-complementary
#400D12 #0D4022 #0D2B40
monochromatic
#190507 #190507 #400D12 #731720 #A6222F

Accessibility & contrast

On white

16.35
#400D12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D12
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D12#FFFFFF#000000##FFFFFF
##400D121.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1912
Deuteranopia (green-blind)
#282411
Tritanopia (blue-blind)
#47020F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400d12;
/* rgb */ color: rgb(64, 13, 18);
/* oklch */ color: oklch(25.2% 0.078 19.5);
Tailwind
colors: {
  custom: {
    50: '#79504f',
    500: '#400d12',
    950: '#000000',
  },
}
SCSS
$custom: #400d12;
$custom-light: #79504f;
$custom-dark: #000000;
JSON
{
  "hex": "#400d12",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 18
  },
  "hsl": {
    "h": 354.118,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.25193,
    "c": 0.07838,
    "h": 19.5
  },
  "luminance": 0.01422
}

Semantic roles & 50–950 ramp

primary
#400D12
secondary
#2D7C74
accent
#E9D83F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400D12

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

Preview Lab → · Contrast checker → · Palette generator →

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