#400712#400712

#400712 is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.5% C 0.085 H 15.9°. Best body text is #FFFFFF at 16.70:1 contrast (WCAG AA passes).

Color values

HEX#400712
RGBrgb(64, 7, 18)
HSLhsl(348, 80%, 14%)
HSVhsv(348, 89%, 25%)
CMYKcmyk(0%, 89.1%, 71.9%, 74.9%)
CIE-LABlab(11.18, 27.47, 9.27)
CIE-LCHlch(11.18, 29.00, 18.64°)
OKLaboklab(24.51% 0.0822 0.0234)
OKLCHoklch(24.51% 0.085 15.9)
XYZxyz(2.2998, 1.2860, 0.6993)
Luminance0.0129 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400712 #074035
analogous
#40072F #400712 #401907
triadic
#400712 #124007 #071240
tetradic
#400712 #2F4007 #074035 #190740
square
#400712 #2F4007 #074035 #190740
split-complementary
#400712 #074019 #072F40
monochromatic
#1C0308 #1C0308 #400712 #770D22 #AE1331

Accessibility & contrast

On white

16.70
#400712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#400712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400712
16.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400712#FFFFFF#000000##FFFFFF
##4007121.0016.701.2616.70
#FFFFFF16.701.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#171612
Deuteranopia (green-blind)
#262210
Tritanopia (blue-blind)
#47000C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #400712;
/* rgb */ color: rgb(64, 7, 18);
/* oklch */ color: oklch(24.5% 0.085 15.9);
Tailwind
colors: {
  custom: {
    50: '#7a4d4f',
    500: '#400712',
    950: '#000000',
  },
}
SCSS
$custom: #400712;
$custom-light: #7a4d4f;
$custom-dark: #000000;
JSON
{
  "hex": "#400712",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 18
  },
  "hsl": {
    "h": 348.421,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24506,
    "c": 0.08542,
    "h": 15.9
  },
  "luminance": 0.01286
}

Semantic roles & 50–950 ramp

primary
#400712
secondary
#247F6D
accent
#F7D131
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0102
muted
#7C7778

Preview Lab

Preview with #400712

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

Preview Lab → · Contrast checker → · Palette generator →

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