#402226#402226

#402226 is a dark, muted red. Relative luminance 0.024; OKLCH L 29.3% C 0.046 H 11.7°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#402226
RGBrgb(64, 34, 38)
HSLhsl(352, 31%, 19%)
HSVhsv(352, 47%, 25%)
CMYKcmyk(0%, 46.9%, 40.6%, 74.9%)
CIE-LABlab(17.34, 14.95, 3.58)
CIE-LCHlch(17.34, 15.37, 13.47°)
OKLaboklab(29.32% 0.0453 0.0094)
OKLCHoklch(29.32% 0.046 11.7)
XYZxyz(3.0364, 2.3742, 2.1317)
Luminance0.0237 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402226 #22403C
analogous
#402235 #402226 #402D22
triadic
#402226 #264022 #222640
tetradic
#402226 #354022 #22403C #2D2240
square
#402226 #354022 #22403C #2D2240
split-complementary
#402226 #22402D #223540
monochromatic
#140B0C #180D0E #402226 #68373E #904C55

Accessibility & contrast

On white

14.24
#402226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#402226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402226
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402226#FFFFFF#000000##FFFFFF
##4022261.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#272726
Deuteranopia (green-blind)
#2F2D25
Tritanopia (blue-blind)
#451F23
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #402226;
/* rgb */ color: rgb(64, 34, 38);
/* oklch */ color: oklch(29.3% 0.046 11.7);
Tailwind
colors: {
  custom: {
    50: '#765d60',
    500: '#402226',
    950: '#000000',
  },
}
SCSS
$custom: #402226;
$custom-light: #765d60;
$custom-dark: #000000;
JSON
{
  "hex": "#402226",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 38
  },
  "hsl": {
    "h": 352,
    "s": 30.612,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29317,
    "c": 0.04628,
    "h": 11.7
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#402226
secondary
#4B736E
accent
#C7B961
background
#F7F5F5
surface
#EDE9E9
border
#C8C5C5
text
#090404
muted
#7B7979

Preview Lab

Preview with #402226

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

Preview Lab → · Contrast checker → · Palette generator →

#402226 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva