#400F0C#400F0C

#400F0C is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.3% C 0.077 H 27.5°. Best body text is #FFFFFF at 16.26:1 contrast (WCAG AA passes).

Color values

HEX#400F0C
RGBrgb(64, 15, 12)
HSLhsl(3, 68%, 15%)
HSVhsv(3, 81%, 25%)
CMYKcmyk(0%, 76.6%, 81.2%, 74.9%)
CIE-LABlab(12.34, 23.54, 14.05)
CIE-LCHlch(12.34, 27.41, 30.83°)
OKLaboklab(25.34% 0.0681 0.0354)
OKLCHoklch(25.34% 0.077 27.5)
XYZxyz(2.3518, 1.4585, 0.5054)
Luminance0.0146 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F0C #0C3D40
analogous
#400C23 #400F0C #40290C
triadic
#400F0C #0C400F #0F0C40
tetradic
#400F0C #23400C #0C3D40 #290C40
square
#400F0C #23400C #0C3D40 #290C40
split-complementary
#400F0C #0C4029 #0C2340
monochromatic
#1A0605 #1A0605 #400F0C #741B16 #A7271F

Accessibility & contrast

On white

16.26
#400F0C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400F0C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F0C
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F0C#FFFFFF#000000##FFFFFF
##400F0C1.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D190B
Deuteranopia (green-blind)
#29240A
Tritanopia (blue-blind)
#47030F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400f0c;
/* rgb */ color: rgb(64, 15, 12);
/* oklch */ color: oklch(25.3% 0.077 27.5);
Tailwind
colors: {
  custom: {
    50: '#79514c',
    500: '#400f0c',
    950: '#000000',
  },
}
SCSS
$custom: #400f0c;
$custom-light: #79514c;
$custom-dark: #000000;
JSON
{
  "hex": "#400f0c",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 12
  },
  "hsl": {
    "h": 3.462,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25336,
    "c": 0.07676,
    "h": 27.5
  },
  "luminance": 0.01458
}

Semantic roles & 50–950 ramp

primary
#400F0C
secondary
#2C777C
accent
#E1EB3D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #400F0C

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

Preview Lab → · Contrast checker → · Palette generator →

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