#40180C#40180C

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

Color values

HEX#40180C
RGBrgb(64, 24, 12)
HSLhsl(14, 68%, 15%)
HSVhsv(14, 81%, 25%)
CMYKcmyk(0%, 62.5%, 81.2%, 74.9%)
CIE-LABlab(14.23, 18.54, 16.56)
CIE-LCHlch(14.23, 24.86, 41.78°)
OKLaboklab(26.76% 0.0526 0.0401)
OKLCHoklch(26.76% 0.066 37.3)
XYZxyz(2.5076, 1.7701, 0.5574)
Luminance0.0177 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40180C #0C3440
analogous
#400C1A #40180C #40320C
triadic
#40180C #0C4018 #180C40
tetradic
#40180C #1A400C #0C3440 #320C40
square
#40180C #1A400C #0C3440 #320C40
split-complementary
#40180C #0C4032 #0C1A40
monochromatic
#1A0A05 #1A0A05 #40180C #742B16 #A73F1F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##40180C#FFFFFF#000000##FFFFFF
##40180C1.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)
#231F0B
Deuteranopia (green-blind)
#2D270B
Tritanopia (blue-blind)
#471015
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40180c;
/* rgb */ color: rgb(64, 24, 12);
/* oklch */ color: oklch(26.8% 0.066 37.3);
Tailwind
colors: {
  custom: {
    50: '#79564c',
    500: '#40180c',
    950: '#000000',
  },
}
SCSS
$custom: #40180c;
$custom-light: #79564c;
$custom-dark: #000000;
JSON
{
  "hex": "#40180c",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 12
  },
  "hsl": {
    "h": 13.846,
    "s": 68.421,
    "l": 14.902
  },
  "oklch": {
    "l": 0.26762,
    "c": 0.06609,
    "h": 37.3
  },
  "luminance": 0.0177
}

Semantic roles & 50–950 ramp

primary
#40180C
secondary
#2C6A7C
accent
#C3EB3D
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#0A0301
muted
#7C7877

Preview Lab

Preview with #40180C

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

Preview Lab → · Contrast checker → · Palette generator →

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