#400C0C#400C0C

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

Color values

HEX#400C0C
RGBrgb(64, 12, 12)
HSLhsl(0, 68%, 15%)
HSVhsv(0, 81%, 25%)
CMYKcmyk(0%, 81.2%, 81.2%, 74.9%)
CIE-LABlab(11.82, 24.96, 13.34)
CIE-LCHlch(11.82, 28.30, 28.13°)
OKLaboklab(24.95% 0.0726 0.0341)
OKLCHoklch(24.95% 0.08 25.1)
XYZxyz(2.3124, 1.3798, 0.4923)
Luminance0.0138 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C0C #0C4040
analogous
#400C26 #400C0C #40260C
triadic
#400C0C #0C400C #0C0C40
tetradic
#400C0C #26400C #0C4040 #260C40
square
#400C0C #26400C #0C4040 #260C40
split-complementary
#400C0C #0C4026 #0C2640
monochromatic
#1A0505 #1A0505 #400C0C #741616 #A71F1F

Accessibility & contrast

On white

16.46
#400C0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C0C
16.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C0C#FFFFFF#000000##FFFFFF
##400C0C1.0016.461.2816.46
#FFFFFF16.461.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B180B
Deuteranopia (green-blind)
#28230A
Tritanopia (blue-blind)
#47000D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400c0c;
/* rgb */ color: rgb(64, 12, 12);
/* oklch */ color: oklch(24.9% 0.080 25.1);
Tailwind
colors: {
  custom: {
    50: '#7a4f4c',
    500: '#400c0c',
    950: '#000000',
  },
}
SCSS
$custom: #400c0c;
$custom-light: #7a4f4c;
$custom-dark: #000000;
JSON
{
  "hex": "#400c0c",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 12
  },
  "hsl": {
    "h": 0,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24948,
    "c": 0.08018,
    "h": 25.1
  },
  "luminance": 0.01379
}

Semantic roles & 50–950 ramp

primary
#400C0C
secondary
#2C7C7C
accent
#EBEB3D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400C0C

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

Preview Lab → · Contrast checker → · Palette generator →

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