#400512#400512

#400512 is a very dark, moderate red. Relative luminance 0.012; OKLCH L 24.3% C 0.088 H 14.8°. Best body text is #FFFFFF at 16.82:1 contrast (WCAG AA passes).

Color values

HEX#400512
RGBrgb(64, 5, 18)
HSLhsl(347, 86%, 14%)
HSVhsv(347, 92%, 25%)
CMYKcmyk(0%, 92.2%, 71.9%, 74.9%)
CIE-LABlab(10.87, 28.35, 8.84)
CIE-LCHlch(10.87, 29.70, 17.32°)
OKLaboklab(24.28% 0.085 0.0224)
OKLCHoklch(24.28% 0.088 14.8)
XYZxyz(2.2781, 1.2426, 0.6920)
Luminance0.0124 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400512 #054033
analogous
#40052F #400512 #401505
triadic
#400512 #124005 #051240
tetradic
#400512 #2F4005 #054033 #150540
square
#400512 #2F4005 #054033 #150540
split-complementary
#400512 #054015 #052F40
monochromatic
#1C0208 #1C0208 #400512 #790922 #B20E32

Accessibility & contrast

On white

16.82
#400512 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#400512 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400512
16.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400512#FFFFFF#000000##FFFFFF
##4005121.0016.821.2516.82
#FFFFFF16.821.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#161512
Deuteranopia (green-blind)
#252210
Tritanopia (blue-blind)
#47000A
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400512;
/* rgb */ color: rgb(64, 5, 18);
/* oklch */ color: oklch(24.3% 0.088 14.8);
Tailwind
colors: {
  custom: {
    50: '#7a4c4f',
    500: '#400512',
    950: '#000000',
  },
}
SCSS
$custom: #400512;
$custom-light: #7a4c4f;
$custom-dark: #000000;
JSON
{
  "hex": "#400512",
  "rgb": {
    "r": 64,
    "g": 5,
    "b": 18
  },
  "hsl": {
    "h": 346.78,
    "s": 85.507,
    "l": 13.529
  },
  "oklch": {
    "l": 0.24277,
    "c": 0.0879,
    "h": 14.8
  },
  "luminance": 0.01242
}

Semantic roles & 50–950 ramp

primary
#400512
secondary
#20816B
accent
#FCCE2C
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400512

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

Preview Lab → · Contrast checker → · Palette generator →

#400512 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva