#40131E#40131E

#40131E is a dark, moderate red. Relative luminance 0.016; OKLCH L 26.4% C 0.071 H 8.4°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#40131E
RGBrgb(64, 19, 30)
HSLhsl(345, 54%, 16%)
HSVhsv(345, 70%, 25%)
CMYKcmyk(0%, 70.3%, 53.1%, 74.9%)
CIE-LABlab(13.53, 23.02, 3.94)
CIE-LCHlch(13.53, 23.35, 9.72°)
OKLaboklab(26.36% 0.07 0.0103)
OKLCHoklch(26.36% 0.071 8.4)
XYZxyz(2.5818, 1.6498, 1.4105)
Luminance0.0165 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40131E #134035
analogous
#401335 #40131E #401F13
triadic
#40131E #1E4013 #131E40
tetradic
#40131E #354013 #134035 #1F1340
square
#40131E #354013 #134035 #1F1340
split-complementary
#40131E #13401F #133540
monochromatic
#18070B #18070B #40131E #6F2134 #9E2F4A

Accessibility & contrast

On white

15.79
#40131E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40131E
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40131E#FFFFFF#000000##FFFFFF
##40131E1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D1D1E
Deuteranopia (green-blind)
#28261D
Tritanopia (blue-blind)
#460D17
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #40131e;
/* rgb */ color: rgb(64, 19, 30);
/* oklch */ color: oklch(26.4% 0.071 8.4);
Tailwind
colors: {
  custom: {
    50: '#785359',
    500: '#40131e',
    950: '#000000',
  },
}
SCSS
$custom: #40131e;
$custom-light: #785359;
$custom-dark: #000000;
JSON
{
  "hex": "#40131e",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 30
  },
  "hsl": {
    "h": 345.333,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.2636,
    "c": 0.07071,
    "h": 8.4
  },
  "luminance": 0.01649
}

Semantic roles & 50–950 ramp

primary
#40131E
secondary
#367968
accent
#DEBA4A
background
#F7F4F5
surface
#EDE7E9
border
#C8C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #40131E

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

Preview Lab → · Contrast checker → · Palette generator →

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