#40111C#40111C

#40111C is a dark, moderate red. Relative luminance 0.016; OKLCH L 26.0% C 0.073 H 9.7°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#40111C
RGBrgb(64, 17, 28)
HSLhsl(346, 58%, 16%)
HSVhsv(346, 73%, 25%)
CMYKcmyk(0%, 73.4%, 56.2%, 74.9%)
CIE-LABlab(13.08, 23.85, 4.78)
CIE-LCHlch(13.08, 24.33, 11.34°)
OKLaboklab(26% 0.0724 0.0123)
OKLCHoklch(26% 0.073 9.7)
XYZxyz(2.5246, 1.5750, 1.2695)
Luminance0.0158 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40111C #114035
analogous
#401133 #40111C #401D11
triadic
#40111C #1C4011 #111C40
tetradic
#40111C #334011 #114035 #1D1140
square
#40111C #334011 #114035 #1D1140
split-complementary
#40111C #11401D #113340
monochromatic
#18060B #18060B #40111C #701E31 #A12B46

Accessibility & contrast

On white

15.97
#40111C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#40111C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40111C
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40111C#FFFFFF#000000##FFFFFF
##40111C1.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C1C1C
Deuteranopia (green-blind)
#28251B
Tritanopia (blue-blind)
#460A15
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40111c;
/* rgb */ color: rgb(64, 17, 28);
/* oklch */ color: oklch(26.0% 0.073 9.7);
Tailwind
colors: {
  custom: {
    50: '#785257',
    500: '#40111c',
    950: '#000000',
  },
}
SCSS
$custom: #40111c;
$custom-light: #785257;
$custom-dark: #000000;
JSON
{
  "hex": "#40111c",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 28
  },
  "hsl": {
    "h": 345.957,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.26003,
    "c": 0.07343,
    "h": 9.7
  },
  "luminance": 0.01575
}

Semantic roles & 50–950 ramp

primary
#40111C
secondary
#337969
accent
#E1BD47
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #40111C

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

Preview Lab → · Contrast checker → · Palette generator →

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