#400B18#400B18

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

Color values

HEX#400B18
RGBrgb(64, 11, 24)
HSLhsl(345, 71%, 15%)
HSVhsv(345, 83%, 25%)
CMYKcmyk(0%, 82.8%, 62.5%, 74.9%)
CIE-LABlab(11.93, 26.29, 6.17)
CIE-LCHlch(11.93, 27.00, 13.21°)
OKLaboklab(25.11% 0.0796 0.0156)
OKLCHoklch(25.11% 0.081 11.1)
XYZxyz(2.3991, 1.3956, 1.0070)
Luminance0.0140 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B18 #0B4033
analogous
#400B33 #400B18 #40190B
triadic
#400B18 #18400B #0B1840
tetradic
#400B18 #33400B #0B4033 #190B40
square
#400B18 #33400B #0B4033 #190B40
split-complementary
#400B18 #0B4019 #0B3340
monochromatic
#1A040A #1A040A #400B18 #74142C #A81D3F

Accessibility & contrast

On white

16.42
#400B18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400B18
16.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B18#FFFFFF#000000##FFFFFF
##400B181.0016.421.2816.42
#FFFFFF16.421.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400b18;
/* rgb */ color: rgb(64, 11, 24);
/* oklch */ color: oklch(25.1% 0.081 11.1);
Tailwind
colors: {
  custom: {
    50: '#794f54',
    500: '#400b18',
    950: '#000000',
  },
}
SCSS
$custom: #400b18;
$custom-light: #794f54;
$custom-dark: #000000;
JSON
{
  "hex": "#400b18",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 24
  },
  "hsl": {
    "h": 345.283,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.25112,
    "c": 0.08111,
    "h": 11.1
  },
  "luminance": 0.01395
}

Semantic roles & 50–950 ramp

primary
#400B18
secondary
#2A7D68
accent
#EDC23A
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0202
muted
#7C7878

Preview Lab

Preview with #400B18

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

Preview Lab → · Contrast checker → · Palette generator →

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