#40180D#40180D

#40180D is a dark, moderate red. Relative luminance 0.018; OKLCH L 26.8% C 0.066 H 36.3°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#40180D
RGBrgb(64, 24, 13)
HSLhsl(13, 66%, 15%)
HSVhsv(13, 80%, 25%)
CMYKcmyk(0%, 62.5%, 79.7%, 74.9%)
CIE-LABlab(14.25, 18.60, 16.12)
CIE-LCHlch(14.25, 24.61, 40.90°)
OKLaboklab(26.78% 0.053 0.0389)
OKLCHoklch(26.78% 0.066 36.3)
XYZxyz(2.5139, 1.7726, 0.5905)
Luminance0.0177 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40180D #0D3540
analogous
#400D1C #40180D #40310D
triadic
#40180D #0D4018 #180D40
tetradic
#40180D #1C400D #0D3540 #310D40
square
#40180D #1C400D #0D3540 #310D40
split-complementary
#40180D #0D4031 #0D1C40
monochromatic
#190A05 #190A05 #40180D #732B17 #A63E22

Accessibility & contrast

On white

15.51
#40180D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#40180D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40180D
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40180D#FFFFFF#000000##FFFFFF
##40180D1.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231F0C
Deuteranopia (green-blind)
#2D270C
Tritanopia (blue-blind)
#471016
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40180d;
/* rgb */ color: rgb(64, 24, 13);
/* oklch */ color: oklch(26.8% 0.066 36.3);
Tailwind
colors: {
  custom: {
    50: '#79564c',
    500: '#40180d',
    950: '#000000',
  },
}
SCSS
$custom: #40180d;
$custom-light: #79564c;
$custom-dark: #000000;
JSON
{
  "hex": "#40180d",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 13
  },
  "hsl": {
    "h": 12.941,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.26777,
    "c": 0.06573,
    "h": 36.3
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#40180D
secondary
#2D6B7C
accent
#C4E93F
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40180D

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

Preview Lab → · Contrast checker → · Palette generator →

#40180D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva