#40101C#40101C

#40101C is a dark, moderate red. Relative luminance 0.015; OKLCH L 25.9% C 0.075 H 9.0°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#40101C
RGBrgb(64, 16, 28)
HSLhsl(345, 60%, 16%)
HSVhsv(345, 75%, 25%)
CMYKcmyk(0%, 75%, 56.2%, 74.9%)
CIE-LABlab(12.89, 24.36, 4.52)
CIE-LCHlch(12.89, 24.78, 10.51°)
OKLaboklab(25.86% 0.074 0.0117)
OKLCHoklch(25.86% 0.075 9)
XYZxyz(2.5094, 1.5447, 1.2644)
Luminance0.0154 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40101C #104034
analogous
#401034 #40101C #401C10
triadic
#40101C #1C4010 #101C40
tetradic
#40101C #344010 #104034 #1C1040
square
#40101C #344010 #104034 #1C1040
split-complementary
#40101C #10401C #103440
monochromatic
#18060B #18060B #40101C #711C31 #A22847

Accessibility & contrast

On white

16.05
#40101C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#40101C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40101C
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40101C#FFFFFF#000000##FFFFFF
##40101C1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1B1C
Deuteranopia (green-blind)
#27251B
Tritanopia (blue-blind)
#460815
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40101c;
/* rgb */ color: rgb(64, 16, 28);
/* oklch */ color: oklch(25.9% 0.075 9.0);
Tailwind
colors: {
  custom: {
    50: '#785257',
    500: '#40101c',
    950: '#000000',
  },
}
SCSS
$custom: #40101c;
$custom-light: #785257;
$custom-dark: #000000;
JSON
{
  "hex": "#40101c",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 28
  },
  "hsl": {
    "h": 345,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25863,
    "c": 0.07493,
    "h": 9
  },
  "luminance": 0.01544
}

Semantic roles & 50–950 ramp

primary
#40101C
secondary
#327A68
accent
#E3BC45
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #40101C

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

Preview Lab → · Contrast checker → · Palette generator →

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