#400312#400312

#400312 is a very dark, moderate red. Relative luminance 0.012; OKLCH L 24.0% C 0.091 H 13.7°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#400312
RGBrgb(64, 3, 18)
HSLhsl(345, 91%, 13%)
HSVhsv(345, 95%, 25%)
CMYKcmyk(0%, 95.3%, 71.9%, 74.9%)
CIE-LABlab(10.55, 29.26, 8.40)
CIE-LCHlch(10.55, 30.44, 16.01°)
OKLaboklab(24.04% 0.0879 0.0215)
OKLCHoklch(24.04% 0.091 13.7)
XYZxyz(2.2563, 1.1991, 0.6848)
Luminance0.0120 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400312 #034031
analogous
#400330 #400312 #401203
triadic
#400312 #124003 #031240
tetradic
#400312 #304003 #034031 #120340
square
#400312 #304003 #034031 #120340
split-complementary
#400312 #034012 #033040
monochromatic
#1D0108 #1D0108 #400312 #7A0622 #B50833

Accessibility & contrast

On white

16.94
#400312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#400312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400312
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400312#FFFFFF#000000##FFFFFF
##4003121.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151412
Deuteranopia (green-blind)
#252110
Tritanopia (blue-blind)
#470009
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #400312;
/* rgb */ color: rgb(64, 3, 18);
/* oklch */ color: oklch(24.0% 0.091 13.7);
Tailwind
colors: {
  custom: {
    50: '#7a4b4f',
    500: '#400312',
    950: '#000000',
  },
}
SCSS
$custom: #400312;
$custom-light: #7a4b4f;
$custom-dark: #000000;
JSON
{
  "hex": "#400312",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 18
  },
  "hsl": {
    "h": 345.246,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.24044,
    "c": 0.09051,
    "h": 13.7
  },
  "luminance": 0.01199
}

Semantic roles & 50–950 ramp

primary
#400312
secondary
#1D8269
accent
#FFCA29
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400312

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

Preview Lab → · Contrast checker → · Palette generator →

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