#400C0E#400C0E

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

Color values

HEX#400C0E
RGBrgb(64, 12, 14)
HSLhsl(358, 68%, 15%)
HSVhsv(358, 81%, 25%)
CMYKcmyk(0%, 81.2%, 78.1%, 74.9%)
CIE-LABlab(11.86, 25.07, 12.43)
CIE-LCHlch(11.86, 27.99, 26.37°)
OKLaboklab(24.99% 0.0735 0.0314)
OKLCHoklch(24.99% 0.08 23.1)
XYZxyz(2.3253, 1.3850, 0.5603)
Luminance0.0138 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C0E #0C403E
analogous
#400C28 #400C0E #40240C
triadic
#400C0E #0E400C #0C0E40
tetradic
#400C0E #28400C #0C403E #240C40
square
#400C0E #28400C #0C403E #240C40
split-complementary
#400C0E #0C4024 #0C2840
monochromatic
#1A0506 #1A0506 #400C0E #741619 #A71F25

Accessibility & contrast

On white

16.44
#400C0E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C0E
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C0E#FFFFFF#000000##FFFFFF
##400C0E1.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400c0e;
/* rgb */ color: rgb(64, 12, 14);
/* oklch */ color: oklch(25.0% 0.080 23.1);
Tailwind
colors: {
  custom: {
    50: '#7a4f4d',
    500: '#400c0e',
    950: '#000000',
  },
}
SCSS
$custom: #400c0e;
$custom-light: #7a4f4d;
$custom-dark: #000000;
JSON
{
  "hex": "#400c0e",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 14
  },
  "hsl": {
    "h": 357.692,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.24985,
    "c": 0.07992,
    "h": 23.1
  },
  "luminance": 0.01385
}

Semantic roles & 50–950 ramp

primary
#400C0E
secondary
#2C7C79
accent
#EBE53D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400C0E

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

Preview Lab → · Contrast checker → · Palette generator →

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