#40090F#40090F

#40090F is a very dark, moderate red. Relative luminance 0.013; OKLCH L 24.7% C 0.083 H 20.2°. Best body text is #FFFFFF at 16.61:1 contrast (WCAG AA passes).

Color values

HEX#40090F
RGBrgb(64, 9, 15)
HSLhsl(353, 75%, 14%)
HSVhsv(353, 86%, 25%)
CMYKcmyk(0%, 85.9%, 76.6%, 74.9%)
CIE-LABlab(11.42, 26.42, 11.31)
CIE-LCHlch(11.42, 28.74, 23.17°)
OKLaboklab(24.66% 0.078 0.0287)
OKLCHoklch(24.66% 0.083 20.2)
XYZxyz(2.2985, 1.3202, 0.5856)
Luminance0.0132 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40090F #09403A
analogous
#40092B #40090F #401F09
triadic
#40090F #0F4009 #090F40
tetradic
#40090F #2B4009 #09403A #1F0940
square
#40090F #2B4009 #09403A #1F0940
split-complementary
#40090F #09401F #092B40
monochromatic
#1B0406 #1B0406 #40090F #76111C #AB1828

Accessibility & contrast

On white

16.61
#40090F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#40090F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40090F
16.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40090F#FFFFFF#000000##FFFFFF
##40090F1.0016.611.2616.61
#FFFFFF16.611.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19170F
Deuteranopia (green-blind)
#27230D
Tritanopia (blue-blind)
#47000C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #40090f;
/* rgb */ color: rgb(64, 9, 15);
/* oklch */ color: oklch(24.7% 0.083 20.2);
Tailwind
colors: {
  custom: {
    50: '#7a4e4d',
    500: '#40090f',
    950: '#000000',
  },
}
SCSS
$custom: #40090f;
$custom-light: #7a4e4d;
$custom-dark: #000000;
JSON
{
  "hex": "#40090f",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 15
  },
  "hsl": {
    "h": 353.455,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.24662,
    "c": 0.08315,
    "h": 20.2
  },
  "luminance": 0.0132
}

Semantic roles & 50–950 ramp

primary
#40090F
secondary
#277E74
accent
#F2DD36
background
#F7F4F4
surface
#EEE7E7
border
#C9C3C3
text
#0A0201
muted
#7C7877

Preview Lab

Preview with #40090F

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

Preview Lab → · Contrast checker → · Palette generator →

#40090F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva