#40141B#40141B

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

Color values

HEX#40141B
RGBrgb(64, 20, 27)
HSLhsl(350, 52%, 16%)
HSVhsv(350, 69%, 25%)
CMYKcmyk(0%, 68.8%, 57.8%, 74.9%)
CIE-LABlab(13.65, 22.13, 6.32)
CIE-LCHlch(13.65, 23.01, 15.93°)
OKLaboklab(26.42% 0.0668 0.016)
OKLCHoklch(26.42% 0.069 13.5)
XYZxyz(2.5625, 1.6697, 1.2240)
Luminance0.0167 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40141B #144039
analogous
#401431 #40141B #402314
triadic
#40141B #1B4014 #141B40
tetradic
#40141B #314014 #144039 #231440
square
#40141B #314014 #144039 #231440
split-complementary
#40141B #144023 #143140
monochromatic
#17070A #17070A #40141B #6F232F #9D3142

Accessibility & contrast

On white

15.74
#40141B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40141B
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40141B#FFFFFF#000000##FFFFFF
##40141B1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40141b;
/* rgb */ color: rgb(64, 20, 27);
/* oklch */ color: oklch(26.4% 0.069 13.5);
Tailwind
colors: {
  custom: {
    50: '#785457',
    500: '#40141b',
    950: '#000000',
  },
}
SCSS
$custom: #40141b;
$custom-light: #785457;
$custom-dark: #000000;
JSON
{
  "hex": "#40141b",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 27
  },
  "hsl": {
    "h": 350.455,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26421,
    "c": 0.0687,
    "h": 13.5
  },
  "luminance": 0.01669
}

Semantic roles & 50–950 ramp

primary
#40141B
secondary
#38786E
accent
#DCC54C
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #40141B

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

Preview Lab → · Contrast checker → · Palette generator →

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