#40131A#40131A

#40131A is a dark, moderate red. Relative luminance 0.016; OKLCH L 26.2% C 0.070 H 14.0°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#40131A
RGBrgb(64, 19, 26)
HSLhsl(351, 54%, 16%)
HSVhsv(351, 70%, 25%)
CMYKcmyk(0%, 70.3%, 59.4%, 74.9%)
CIE-LABlab(13.42, 22.58, 6.73)
CIE-LCHlch(13.42, 23.56, 16.60°)
OKLaboklab(26.24% 0.0681 0.017)
OKLCHoklch(26.24% 0.07 14)
XYZxyz(2.5339, 1.6306, 1.1584)
Luminance0.0163 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40131A #134039
analogous
#401331 #40131A #402313
triadic
#40131A #1A4013 #131A40
tetradic
#40131A #314013 #134039 #231340
square
#40131A #314013 #134039 #231340
split-complementary
#40131A #134023 #133140
monochromatic
#18070A #18070A #40131A #6F212D #9E2F40

Accessibility & contrast

On white

15.84
#40131A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#40131A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40131A
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40131A#FFFFFF#000000##FFFFFF
##40131A1.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D1D1A
Deuteranopia (green-blind)
#292619
Tritanopia (blue-blind)
#460C16
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40131a;
/* rgb */ color: rgb(64, 19, 26);
/* oklch */ color: oklch(26.2% 0.070 14.0);
Tailwind
colors: {
  custom: {
    50: '#785356',
    500: '#40131a',
    950: '#000000',
  },
}
SCSS
$custom: #40131a;
$custom-light: #785356;
$custom-dark: #000000;
JSON
{
  "hex": "#40131a",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 26
  },
  "hsl": {
    "h": 350.667,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.26237,
    "c": 0.07017,
    "h": 14
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#40131A
secondary
#36796E
accent
#DEC74A
background
#F7F4F5
surface
#EEE7E8
border
#C9C3C4
text
#090203
muted
#7B7878

Preview Lab

Preview with #40131A

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

Preview Lab → · Contrast checker → · Palette generator →

#40131A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva