#400C17#400C17

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

Color values

HEX#400C17
RGBrgb(64, 12, 23)
HSLhsl(347, 68%, 15%)
HSVhsv(347, 81%, 25%)
CMYKcmyk(0%, 81.2%, 64.1%, 74.9%)
CIE-LABlab(12.06, 25.76, 7.10)
CIE-LCHlch(12.06, 26.72, 15.40°)
OKLaboklab(25.2% 0.0777 0.0177)
OKLCHoklch(25.2% 0.08 12.8)
XYZxyz(2.4007, 1.4151, 0.9572)
Luminance0.0141 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400C17 #0C4035
analogous
#400C31 #400C17 #401B0C
triadic
#400C17 #17400C #0C1740
tetradic
#400C17 #31400C #0C4035 #1B0C40
square
#400C17 #31400C #0C4035 #1B0C40
split-complementary
#400C17 #0C401B #0C3140
monochromatic
#1A0509 #1A0509 #400C17 #74162A #A71F3C

Accessibility & contrast

On white

16.37
#400C17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400C17
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400C17#FFFFFF#000000##FFFFFF
##400C171.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191917
Deuteranopia (green-blind)
#272416
Tritanopia (blue-blind)
#470210
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400c17;
/* rgb */ color: rgb(64, 12, 23);
/* oklch */ color: oklch(25.2% 0.080 12.8);
Tailwind
colors: {
  custom: {
    50: '#794f53',
    500: '#400c17',
    950: '#000000',
  },
}
SCSS
$custom: #400c17;
$custom-light: #794f53;
$custom-dark: #000000;
JSON
{
  "hex": "#400c17",
  "rgb": {
    "r": 64,
    "g": 12,
    "b": 23
  },
  "hsl": {
    "h": 347.308,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.25199,
    "c": 0.07974,
    "h": 12.8
  },
  "luminance": 0.01415
}

Semantic roles & 50–950 ramp

primary
#400C17
secondary
#2C7C6B
accent
#EBC63D
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400C17

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

Preview Lab → · Contrast checker → · Palette generator →

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