#401118#401118

#401118 is a dark, moderate red. Relative luminance 0.016; OKLCH L 25.9% C 0.073 H 15.1°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#401118
RGBrgb(64, 17, 24)
HSLhsl(351, 58%, 16%)
HSVhsv(351, 73%, 25%)
CMYKcmyk(0%, 73.4%, 62.5%, 74.9%)
CIE-LABlab(12.97, 23.44, 7.59)
CIE-LCHlch(12.97, 24.64, 17.95°)
OKLaboklab(25.88% 0.0705 0.019)
OKLCHoklch(25.88% 0.073 15.1)
XYZxyz(2.4799, 1.5572, 1.0339)
Luminance0.0156 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401118 #114039
analogous
#40112F #401118 #402111
triadic
#401118 #184011 #111840
tetradic
#401118 #2F4011 #114039 #211140
square
#401118 #2F4011 #114039 #211140
split-complementary
#401118 #114021 #112F40
monochromatic
#180609 #180609 #401118 #701E2A #A12B3C

Accessibility & contrast

On white

16.01
#401118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#401118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401118
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401118#FFFFFF#000000##FFFFFF
##4011181.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C1B18
Deuteranopia (green-blind)
#282517
Tritanopia (blue-blind)
#470814
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #401118;
/* rgb */ color: rgb(64, 17, 24);
/* oklch */ color: oklch(25.9% 0.073 15.1);
Tailwind
colors: {
  custom: {
    50: '#785254',
    500: '#401118',
    950: '#000000',
  },
}
SCSS
$custom: #401118;
$custom-light: #785254;
$custom-dark: #000000;
JSON
{
  "hex": "#401118",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 24
  },
  "hsl": {
    "h": 351.064,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25884,
    "c": 0.07301,
    "h": 15.1
  },
  "luminance": 0.01557
}

Semantic roles & 50–950 ramp

primary
#401118
secondary
#33796F
accent
#E1CA47
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#090202
muted
#7B7878

Preview Lab

Preview with #401118

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

Preview Lab → · Contrast checker → · Palette generator →

#401118 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva