#402D27#402D27

#402D27 is a dark, muted red. Relative luminance 0.031; OKLCH L 31.8% C 0.030 H 38.3°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#402D27
RGBrgb(64, 45, 39)
HSLhsl(14, 24%, 20%)
HSVhsv(14, 39%, 25%)
CMYKcmyk(0%, 29.7%, 39.1%, 74.9%)
CIE-LABlab(20.49, 7.76, 7.31)
CIE-LCHlch(20.49, 10.66, 43.31°)
OKLaboklab(31.75% 0.0237 0.0187)
OKLCHoklch(31.75% 0.03 38.3)
XYZxyz(3.4190, 3.1134, 2.3399)
Luminance0.0311 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D27 #273A40
analogous
#40272D #402D27 #403927
triadic
#402D27 #27402D #2D2740
tetradic
#402D27 #2D4027 #273A40 #392740
square
#402D27 #2D4027 #273A40 #392740
split-complementary
#402D27 #274039 #272D40
monochromatic
#130D0C #1A1210 #402D27 #66483E #8C6255

Accessibility & contrast

On white

12.94
#402D27 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#402D27 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402D27
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D27#FFFFFF#000000##FFFFFF
##402D271.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312F27
Deuteranopia (green-blind)
#363327
Tritanopia (blue-blind)
#452A2B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402d27;
/* rgb */ color: rgb(64, 45, 39);
/* oklch */ color: oklch(31.8% 0.030 38.3);
Tailwind
colors: {
  custom: {
    50: '#756661',
    500: '#402d27',
    950: '#000000',
  },
}
SCSS
$custom: #402d27;
$custom-light: #756661;
$custom-dark: #000000;
JSON
{
  "hex": "#402d27",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 39
  },
  "hsl": {
    "h": 14.4,
    "s": 24.272,
    "l": 20.196
  },
  "oklch": {
    "l": 0.31752,
    "c": 0.03022,
    "h": 38.3
  },
  "luminance": 0.03113
}

Semantic roles & 50–950 ramp

primary
#402D27
secondary
#516A72
accent
#ABC167
background
#F7F6F5
surface
#EDEBE9
border
#C8C6C5
text
#080505
muted
#7B7A79

Preview Lab

Preview with #402D27

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

Preview Lab → · Contrast checker → · Palette generator →

#402D27 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva