#402A26#402A26

#402A26 is a dark, muted red. Relative luminance 0.029; OKLCH L 31.0% C 0.034 H 30.6°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#402A26
RGBrgb(64, 42, 38)
HSLhsl(9, 25%, 20%)
HSVhsv(9, 41%, 25%)
CMYKcmyk(0%, 34.4%, 40.6%, 74.9%)
CIE-LABlab(19.58, 9.62, 6.73)
CIE-LCHlch(19.58, 11.74, 35.00°)
OKLaboklab(31.04% 0.0292 0.0173)
OKLCHoklch(31.04% 0.034 30.6)
XYZxyz(3.2923, 2.8861, 2.2170)
Luminance0.0289 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A26 #263C40
analogous
#40262F #402A26 #403726
triadic
#402A26 #26402A #2A2640
tetradic
#402A26 #2F4026 #263C40 #372640
square
#402A26 #2F4026 #263C40 #372640
split-complementary
#402A26 #264037 #262F40
monochromatic
#130D0B #1A110F #402A26 #66433D #8D5C54

Accessibility & contrast

On white

13.31
#402A26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#402A26 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A26
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A26#FFFFFF#000000##FFFFFF
##402A261.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F2D26
Deuteranopia (green-blind)
#343126
Tritanopia (blue-blind)
#452729
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402a26;
/* rgb */ color: rgb(64, 42, 38);
/* oklch */ color: oklch(31.0% 0.034 30.6);
Tailwind
colors: {
  custom: {
    50: '#766360',
    500: '#402a26',
    950: '#000000',
  },
}
SCSS
$custom: #402a26;
$custom-light: #766360;
$custom-dark: #000000;
JSON
{
  "hex": "#402a26",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 38
  },
  "hsl": {
    "h": 9.231,
    "s": 25.49,
    "l": 20
  },
  "oklch": {
    "l": 0.31038,
    "c": 0.03396,
    "h": 30.6
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#402A26
secondary
#506D72
accent
#B4C266
background
#F7F5F5
surface
#EDEAE9
border
#C8C6C5
text
#080504
muted
#7B7979

Preview Lab

Preview with #402A26

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

Preview Lab → · Contrast checker → · Palette generator →

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