#402C26#402C26

#402C26 is a dark, muted red. Relative luminance 0.030; OKLCH L 31.5% C 0.032 H 37.4°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#402C26
RGBrgb(64, 44, 38)
HSLhsl(14, 25%, 20%)
HSVhsv(14, 41%, 25%)
CMYKcmyk(0%, 31.2%, 40.6%, 74.9%)
CIE-LABlab(20.17, 8.28, 7.55)
CIE-LCHlch(20.17, 11.20, 42.37°)
OKLaboklab(31.49% 0.0252 0.0193)
OKLCHoklch(31.49% 0.032 37.4)
XYZxyz(3.3650, 3.0315, 2.2412)
Luminance0.0303 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C26 #263A40
analogous
#40262D #402C26 #403926
triadic
#402C26 #26402C #2C2640
tetradic
#402C26 #2D4026 #263A40 #392640
square
#402C26 #2D4026 #263A40 #392640
split-complementary
#402C26 #264039 #262D40
monochromatic
#130D0B #1A120F #402C26 #66463D #8D6154

Accessibility & contrast

On white

13.07
#402C26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#402C26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402C26
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C26#FFFFFF#000000##FFFFFF
##402C261.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#312E26
Deuteranopia (green-blind)
#353226
Tritanopia (blue-blind)
#45292A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #402c26;
/* rgb */ color: rgb(64, 44, 38);
/* oklch */ color: oklch(31.5% 0.032 37.4);
Tailwind
colors: {
  custom: {
    50: '#766560',
    500: '#402c26',
    950: '#000000',
  },
}
SCSS
$custom: #402c26;
$custom-light: #766560;
$custom-dark: #000000;
JSON
{
  "hex": "#402c26",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 38
  },
  "hsl": {
    "h": 13.846,
    "s": 25.49,
    "l": 20
  },
  "oklch": {
    "l": 0.31493,
    "c": 0.03175,
    "h": 37.4
  },
  "luminance": 0.03031
}

Semantic roles & 50–950 ramp

primary
#402C26
secondary
#506A72
accent
#ADC266
background
#F7F6F5
surface
#EDEBE9
border
#C8C6C5
text
#080504
muted
#7B7A79

Preview Lab

Preview with #402C26

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

Preview Lab → · Contrast checker → · Palette generator →

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