#40282E#40282E

#40282E is a dark, muted red. Relative luminance 0.028; OKLCH L 30.9% C 0.037 H 3.1°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#40282E
RGBrgb(64, 40, 46)
HSLhsl(345, 23%, 20%)
HSVhsv(345, 38%, 25%)
CMYKcmyk(0%, 37.5%, 28.1%, 74.9%)
CIE-LABlab(19.25, 12.28, 0.71)
CIE-LCHlch(19.25, 12.30, 3.31°)
OKLaboklab(30.86% 0.0371 0.002)
OKLCHoklch(30.86% 0.037 3.1)
XYZxyz(3.3664, 2.8050, 2.9484)
Luminance0.0280 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40282E #28403A
analogous
#40283A #40282E #402E28
triadic
#40282E #2E4028 #282E40
tetradic
#40282E #3A4028 #28403A #2E2840
square
#40282E #3A4028 #28403A #2E2840
split-complementary
#40282E #28402E #283A40
monochromatic
#130C0E #1A1013 #40282E #664049 #8B5764

Accessibility & contrast

On white

13.45
#40282E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#40282E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40282E
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40282E#FFFFFF#000000##FFFFFF
##40282E1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B2C2E
Deuteranopia (green-blind)
#31302D
Tritanopia (blue-blind)
#44262A
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #40282e;
/* rgb */ color: rgb(64, 40, 46);
/* oklch */ color: oklch(30.9% 0.037 3.1);
Tailwind
colors: {
  custom: {
    50: '#756266',
    500: '#40282e',
    950: '#000000',
  },
}
SCSS
$custom: #40282e;
$custom-light: #756266;
$custom-dark: #000000;
JSON
{
  "hex": "#40282e",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 46
  },
  "hsl": {
    "h": 345,
    "s": 23.077,
    "l": 20.392
  },
  "oklch": {
    "l": 0.30858,
    "c": 0.03713,
    "h": 3.1
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#40282E
secondary
#52726A
accent
#C0AA68
background
#F7F5F6
surface
#EDEAEB
border
#C8C6C6
text
#080506
muted
#7B797A

Preview Lab

Preview with #40282E

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

Preview Lab → · Contrast checker → · Palette generator →

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