#40141D#40141D

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

Color values

HEX#40141D
RGBrgb(64, 20, 29)
HSLhsl(348, 52%, 16%)
HSVhsv(348, 69%, 25%)
CMYKcmyk(0%, 68.8%, 54.7%, 74.9%)
CIE-LABlab(13.71, 22.35, 4.92)
CIE-LCHlch(13.71, 22.89, 12.42°)
OKLaboklab(26.48% 0.0678 0.0127)
OKLCHoklch(26.48% 0.069 10.6)
XYZxyz(2.5865, 1.6793, 1.3501)
Luminance0.0168 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40141D #144037
analogous
#401433 #40141D #402114
triadic
#40141D #1D4014 #141D40
tetradic
#40141D #334014 #144037 #211440
square
#40141D #334014 #144037 #211440
split-complementary
#40141D #144021 #143340
monochromatic
#17070B #17070B #40141D #6F2332 #9D3147

Accessibility & contrast

On white

15.72
#40141D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#40141D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40141D
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40141D#FFFFFF#000000##FFFFFF
##40141D1.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E1D1D
Deuteranopia (green-blind)
#29261C
Tritanopia (blue-blind)
#460E17
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40141d;
/* rgb */ color: rgb(64, 20, 29);
/* oklch */ color: oklch(26.5% 0.069 10.6);
Tailwind
colors: {
  custom: {
    50: '#785458',
    500: '#40141d',
    950: '#000000',
  },
}
SCSS
$custom: #40141d;
$custom-light: #785458;
$custom-dark: #000000;
JSON
{
  "hex": "#40141d",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 29
  },
  "hsl": {
    "h": 347.727,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.26482,
    "c": 0.06894,
    "h": 10.6
  },
  "luminance": 0.01679
}

Semantic roles & 50–950 ramp

primary
#40141D
secondary
#38786B
accent
#DCBE4C
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090303
muted
#7B7878

Preview Lab

Preview with #40141D

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

Preview Lab → · Contrast checker → · Palette generator →

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