#400D17#400D17

#400D17 is a dark, moderate red. Relative luminance 0.014; OKLCH L 25.3% C 0.078 H 13.5°. Best body text is #FFFFFF at 16.30:1 contrast (WCAG AA passes).

Color values

HEX#400D17
RGBrgb(64, 13, 23)
HSLhsl(348, 66%, 15%)
HSVhsv(348, 80%, 25%)
CMYKcmyk(0%, 79.7%, 64.1%, 74.9%)
CIE-LABlab(12.22, 25.31, 7.32)
CIE-LCHlch(12.22, 26.35, 16.13°)
OKLaboklab(25.32% 0.0763 0.0183)
OKLCHoklch(25.32% 0.078 13.5)
XYZxyz(2.4132, 1.4400, 0.9613)
Luminance0.0144 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400D17 #0D4036
analogous
#400D31 #400D17 #401C0D
triadic
#400D17 #17400D #0D1740
tetradic
#400D17 #31400D #0D4036 #1C0D40
square
#400D17 #31400D #0D4036 #1C0D40
split-complementary
#400D17 #0D401C #0D3140
monochromatic
#190509 #190509 #400D17 #731729 #A6223C

Accessibility & contrast

On white

16.30
#400D17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400D17
16.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400D17#FFFFFF#000000##FFFFFF
##400D171.0016.301.2916.30
#FFFFFF16.301.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A1917
Deuteranopia (green-blind)
#272416
Tritanopia (blue-blind)
#470311
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400d17;
/* rgb */ color: rgb(64, 13, 23);
/* oklch */ color: oklch(25.3% 0.078 13.5);
Tailwind
colors: {
  custom: {
    50: '#795053',
    500: '#400d17',
    950: '#000000',
  },
}
SCSS
$custom: #400d17;
$custom-light: #795053;
$custom-dark: #000000;
JSON
{
  "hex": "#400d17",
  "rgb": {
    "r": 64,
    "g": 13,
    "b": 23
  },
  "hsl": {
    "h": 348.235,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.2532,
    "c": 0.07844,
    "h": 13.5
  },
  "luminance": 0.0144
}

Semantic roles & 50–950 ramp

primary
#400D17
secondary
#2D7C6C
accent
#E9C83F
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400D17

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

Preview Lab → · Contrast checker → · Palette generator →

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