#40180F#40180F

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

Color values

HEX#40180F
RGBrgb(64, 24, 15)
HSLhsl(11, 62%, 15%)
HSVhsv(11, 77%, 25%)
CMYKcmyk(0%, 62.5%, 76.6%, 74.9%)
CIE-LABlab(14.28, 18.74, 15.15)
CIE-LCHlch(14.28, 24.09, 38.95°)
OKLaboklab(26.81% 0.0538 0.0364)
OKLCHoklch(26.81% 0.065 34.1)
XYZxyz(2.5274, 1.7781, 0.6620)
Luminance0.0178 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40180F #0F3740
analogous
#400F1E #40180F #40300F
triadic
#40180F #0F4018 #180F40
tetradic
#40180F #1E400F #0F3740 #300F40
square
#40180F #1E400F #0F3740 #300F40
split-complementary
#40180F #0F4030 #0F1E40
monochromatic
#190906 #190906 #40180F #722B1B #A33D26

Accessibility & contrast

On white

15.49
#40180F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#40180F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40180F
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40180F#FFFFFF#000000##FFFFFF
##40180F1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40180f;
/* rgb */ color: rgb(64, 24, 15);
/* oklch */ color: oklch(26.8% 0.065 34.1);
Tailwind
colors: {
  custom: {
    50: '#79564e',
    500: '#40180f',
    950: '#000000',
  },
}
SCSS
$custom: #40180f;
$custom-light: #79564e;
$custom-dark: #000000;
JSON
{
  "hex": "#40180f",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 15
  },
  "hsl": {
    "h": 11.02,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2681,
    "c": 0.06501,
    "h": 34.1
  },
  "luminance": 0.01778
}

Semantic roles & 50–950 ramp

primary
#40180F
secondary
#306D7A
accent
#C7E543
background
#F7F5F4
surface
#EEE9E7
border
#C9C5C3
text
#090301
muted
#7B7877

Preview Lab

Preview with #40180F

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

Preview Lab → · Contrast checker → · Palette generator →

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