#40141C#40141C

#40141C is a dark, moderate red. Relative luminance 0.017; OKLCH L 26.5% C 0.069 H 12.0°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#40141C
RGBrgb(64, 20, 28)
HSLhsl(349, 52%, 16%)
HSVhsv(349, 69%, 25%)
CMYKcmyk(0%, 68.8%, 56.2%, 74.9%)
CIE-LABlab(13.68, 22.24, 5.62)
CIE-LCHlch(13.68, 22.94, 14.18°)
OKLaboklab(26.45% 0.0673 0.0144)
OKLCHoklch(26.45% 0.069 12)
XYZxyz(2.5743, 1.6745, 1.2860)
Luminance0.0167 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40141C #144038
analogous
#401432 #40141C #402214
triadic
#40141C #1C4014 #141C40
tetradic
#40141C #324014 #144038 #221440
square
#40141C #324014 #144038 #221440
split-complementary
#40141C #144022 #143240
monochromatic
#17070A #17070A #40141C #6F2330 #9D3145

Accessibility & contrast

On white

15.73
#40141C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#40141C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40141C
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40141C#FFFFFF#000000##FFFFFF
##40141C1.0015.731.3315.73
#FFFFFF15.731.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1D1C
Deuteranopia (green-blind)
#29261B
Tritanopia (blue-blind)
#460D17
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40141c;
/* rgb */ color: rgb(64, 20, 28);
/* oklch */ color: oklch(26.5% 0.069 12.0);
Tailwind
colors: {
  custom: {
    50: '#785457',
    500: '#40141c',
    950: '#000000',
  },
}
SCSS
$custom: #40141c;
$custom-light: #785457;
$custom-dark: #000000;
JSON
{
  "hex": "#40141c",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 28
  },
  "hsl": {
    "h": 349.091,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26451,
    "c": 0.06881,
    "h": 12
  },
  "luminance": 0.01674
}

Semantic roles & 50–950 ramp

primary
#40141C
secondary
#38786C
accent
#DCC24C
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #40141C

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

Preview Lab → · Contrast checker → · Palette generator →

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