#400C07#400C07

#400C07 is a very dark, moderate red. Relative luminance 0.014; OKLCH L 24.9% C 0.081 H 29.7°. Best body text is #FFFFFF at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#400C07
RGBrgb(64, 12, 7)
HSLhsl(5, 80%, 14%)
HSVhsv(5, 89%, 25%)
CMYKcmyk(0%, 81.2%, 89.1%, 74.9%)
CIE-LABlab(11.75, 24.69, 15.32)
CIE-LCHlch(11.75, 29.06, 31.82°)
OKLaboklab(24.87% 0.0704 0.0403)
OKLCHoklch(24.87% 0.081 29.7)
XYZxyz(2.2844, 1.3686, 0.3449)
Luminance0.0137 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C07 #073B40
analogous
#40071F #400C07 #402907
triadic
#400C07 #07400C #0C0740
tetradic
#400C07 #1F4007 #073B40 #290740
square
#400C07 #1F4007 #073B40 #290740
split-complementary
#400C07 #074029 #071F40
monochromatic
#1C0503 #1C0503 #400C07 #77160D #AE2113

Accessibility & contrast

On white

16.49
#400C07 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#400C07 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400C07
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C07#FFFFFF#000000##FFFFFF
##400C071.0016.491.2716.49
#FFFFFF16.491.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1806
Deuteranopia (green-blind)
#282305
Tritanopia (blue-blind)
#47000B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400c07;
/* rgb */ color: rgb(64, 12, 7);
/* oklch */ color: oklch(24.9% 0.081 29.7);
Tailwind
colors: {
  custom: {
    50: '#7a4f49',
    500: '#400c07',
    950: '#000000',
  },
}
SCSS
$custom: #400c07;
$custom-light: #7a4f49;
$custom-dark: #000000;
JSON
{
  "hex": "#400c07",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 7
  },
  "hsl": {
    "h": 5.263,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.24867,
    "c": 0.08112,
    "h": 29.7
  },
  "luminance": 0.01368
}

Semantic roles & 50–950 ramp

primary
#400C07
secondary
#24777F
accent
#E5F731
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400C07

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

Preview Lab → · Contrast checker → · Palette generator →

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