#40101B#40101B

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

Color values

HEX#40101B
RGBrgb(64, 16, 27)
HSLhsl(346, 60%, 16%)
HSVhsv(346, 75%, 25%)
CMYKcmyk(0%, 75%, 57.8%, 74.9%)
CIE-LABlab(12.86, 24.25, 5.22)
CIE-LCHlch(12.86, 24.81, 12.15°)
OKLaboklab(25.83% 0.0736 0.0134)
OKLCHoklch(25.83% 0.075 10.3)
XYZxyz(2.4977, 1.5400, 1.2024)
Luminance0.0154 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40101B #104035
analogous
#401033 #40101B #401D10
triadic
#40101B #1B4010 #101B40
tetradic
#40101B #334010 #104035 #1D1040
square
#40101B #334010 #104035 #1D1040
split-complementary
#40101B #10401D #103340
monochromatic
#18060A #18060A #40101B #711C30 #A22844

Accessibility & contrast

On white

16.06
#40101B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40101B
16.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40101B#FFFFFF#000000##FFFFFF
##40101B1.0016.061.3116.06
#FFFFFF16.061.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B1B1B
Deuteranopia (green-blind)
#28251A
Tritanopia (blue-blind)
#460814
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40101b;
/* rgb */ color: rgb(64, 16, 27);
/* oklch */ color: oklch(25.8% 0.075 10.3);
Tailwind
colors: {
  custom: {
    50: '#785257',
    500: '#40101b',
    950: '#000000',
  },
}
SCSS
$custom: #40101b;
$custom-light: #785257;
$custom-dark: #000000;
JSON
{
  "hex": "#40101b",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 27
  },
  "hsl": {
    "h": 346.25,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25831,
    "c": 0.07475,
    "h": 10.3
  },
  "luminance": 0.0154
}

Semantic roles & 50–950 ramp

primary
#40101B
secondary
#327A69
accent
#E3BF45
background
#F7F4F5
surface
#EEE7E9
border
#C9C3C5
text
#090203
muted
#7B7878

Preview Lab

Preview with #40101B

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

Preview Lab → · Contrast checker → · Palette generator →

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