#400C16#400C16

#400C16 is a dark, moderate red. Relative luminance 0.014; OKLCH L 25.2% C 0.080 H 14.1°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#400C16
RGBrgb(64, 12, 22)
HSLhsl(348, 68%, 15%)
HSVhsv(348, 81%, 25%)
CMYKcmyk(0%, 81.2%, 65.6%, 74.9%)
CIE-LABlab(12.03, 25.67, 7.79)
CIE-LCHlch(12.03, 26.83, 16.89°)
OKLaboklab(25.17% 0.0773 0.0194)
OKLCHoklch(25.17% 0.08 14.1)
XYZxyz(2.3909, 1.4112, 0.9054)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C16 #0C4036
analogous
#400C30 #400C16 #401C0C
triadic
#400C16 #16400C #0C1640
tetradic
#400C16 #30400C #0C4036 #1C0C40
square
#400C16 #30400C #0C4036 #1C0C40
split-complementary
#400C16 #0C401C #0C3040
monochromatic
#1A0509 #1A0509 #400C16 #741628 #A71F39

Accessibility & contrast

On white

16.38
#400C16 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C16
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C16#FFFFFF#000000##FFFFFF
##400C161.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1916
Deuteranopia (green-blind)
#272315
Tritanopia (blue-blind)
#470210
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400c16;
/* rgb */ color: rgb(64, 12, 22);
/* oklch */ color: oklch(25.2% 0.080 14.1);
Tailwind
colors: {
  custom: {
    50: '#794f52',
    500: '#400c16',
    950: '#000000',
  },
}
SCSS
$custom: #400c16;
$custom-light: #794f52;
$custom-dark: #000000;
JSON
{
  "hex": "#400c16",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 22
  },
  "hsl": {
    "h": 348.462,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25171,
    "c": 0.07965,
    "h": 14.1
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#400C16
secondary
#2C7C6D
accent
#EBCA3D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400C16

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

Preview Lab → · Contrast checker → · Palette generator →

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