#400B17#400B17

#400B17 is a dark, moderate red. Relative luminance 0.014; OKLCH L 25.1% C 0.081 H 12.3°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#400B17
RGBrgb(64, 11, 23)
HSLhsl(346, 71%, 15%)
HSVhsv(346, 83%, 25%)
CMYKcmyk(0%, 82.8%, 64.1%, 74.9%)
CIE-LABlab(11.90, 26.20, 6.88)
CIE-LCHlch(11.90, 27.09, 14.72°)
OKLaboklab(25.08% 0.0791 0.0172)
OKLCHoklch(25.08% 0.081 12.3)
XYZxyz(2.3889, 1.3915, 0.9532)
Luminance0.0139 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B17 #0B4034
analogous
#400B32 #400B17 #401A0B
triadic
#400B17 #17400B #0B1740
tetradic
#400B17 #32400B #0B4034 #1A0B40
square
#400B17 #32400B #0B4034 #1A0B40
split-complementary
#400B17 #0B401A #0B3240
monochromatic
#1A0409 #1A0409 #400B17 #74142A #A81D3D

Accessibility & contrast

On white

16.43
#400B17 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B17
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B17#FFFFFF#000000##FFFFFF
##400B171.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#191817
Deuteranopia (green-blind)
#262316
Tritanopia (blue-blind)
#470110
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #400b17;
/* rgb */ color: rgb(64, 11, 23);
/* oklch */ color: oklch(25.1% 0.081 12.3);
Tailwind
colors: {
  custom: {
    50: '#794f53',
    500: '#400b17',
    950: '#000000',
  },
}
SCSS
$custom: #400b17;
$custom-light: #794f53;
$custom-dark: #000000;
JSON
{
  "hex": "#400b17",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 23
  },
  "hsl": {
    "h": 346.415,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25082,
    "c": 0.08098,
    "h": 12.3
  },
  "luminance": 0.01391
}

Semantic roles & 50–950 ramp

primary
#400B17
secondary
#2A7D6A
accent
#EDC53A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400B17

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

Preview Lab → · Contrast checker → · Palette generator →

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