#40180B#40180B

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

Color values

HEX#40180B
RGBrgb(64, 24, 11)
HSLhsl(15, 71%, 15%)
HSVhsv(15, 83%, 25%)
CMYKcmyk(0%, 62.5%, 82.8%, 74.9%)
CIE-LABlab(14.22, 18.48, 16.99)
CIE-LCHlch(14.22, 25.10, 42.59°)
OKLaboklab(26.75% 0.0522 0.0412)
OKLCHoklch(26.75% 0.066 38.3)
XYZxyz(2.5016, 1.7677, 0.5260)
Luminance0.0177 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40180B #0B3340
analogous
#400B19 #40180B #40330B
triadic
#40180B #0B4018 #180B40
tetradic
#40180B #19400B #0B3340 #330B40
square
#40180B #19400B #0B3340 #330B40
split-complementary
#40180B #0B4033 #0B1940
monochromatic
#1A0A04 #1A0A04 #40180B #742C14 #A83F1D

Accessibility & contrast

On white

15.52
#40180B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40180B
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40180B#FFFFFF#000000##FFFFFF
##40180B1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#231F09
Deuteranopia (green-blind)
#2D270A
Tritanopia (blue-blind)
#470F15
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40180b;
/* rgb */ color: rgb(64, 24, 11);
/* oklch */ color: oklch(26.7% 0.066 38.3);
Tailwind
colors: {
  custom: {
    50: '#79564b',
    500: '#40180b',
    950: '#000000',
  },
}
SCSS
$custom: #40180b;
$custom-light: #79564b;
$custom-dark: #000000;
JSON
{
  "hex": "#40180b",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 11
  },
  "hsl": {
    "h": 14.717,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.26747,
    "c": 0.06645,
    "h": 38.3
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

primary
#40180B
secondary
#2A687D
accent
#C2ED3A
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40180B

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

Preview Lab → · Contrast checker → · Palette generator →

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