#402826#402826

#402826 is a dark, muted red. Relative luminance 0.027; OKLCH L 30.6% C 0.037 H 24.7°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#402826
RGBrgb(64, 40, 38)
HSLhsl(5, 25%, 20%)
HSVhsv(5, 41%, 25%)
CMYKcmyk(0%, 37.5%, 40.6%, 74.9%)
CIE-LABlab(19.00, 10.96, 5.93)
CIE-LCHlch(19.00, 12.46, 28.41°)
OKLaboklab(30.59% 0.0333 0.0153)
OKLCHoklch(30.59% 0.037 24.7)
XYZxyz(3.2231, 2.7477, 2.1940)
Luminance0.0275 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402826 #263E40
analogous
#402631 #402826 #403526
triadic
#402826 #264028 #282640
tetradic
#402826 #314026 #263E40 #352640
square
#402826 #314026 #263E40 #352640
split-complementary
#402826 #264035 #263140
monochromatic
#130C0B #1A100F #402826 #66403D #8D5854

Accessibility & contrast

On white

13.55
#402826 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#402826 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402826
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402826#FFFFFF#000000##FFFFFF
##4028261.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D2B26
Deuteranopia (green-blind)
#333026
Tritanopia (blue-blind)
#452528
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #402826;
/* rgb */ color: rgb(64, 40, 38);
/* oklch */ color: oklch(30.6% 0.037 24.7);
Tailwind
colors: {
  custom: {
    50: '#766260',
    500: '#402826',
    950: '#000000',
  },
}
SCSS
$custom: #402826;
$custom-light: #766260;
$custom-dark: #000000;
JSON
{
  "hex": "#402826",
  "rgb": {
    "r": 64,
    "g": 40,
    "b": 38
  },
  "hsl": {
    "h": 4.615,
    "s": 25.49,
    "l": 20
  },
  "oklch": {
    "l": 0.30592,
    "c": 0.0366,
    "h": 24.7
  },
  "luminance": 0.02748
}

Semantic roles & 50–950 ramp

primary
#402826
secondary
#507072
accent
#BBC266
background
#F7F5F5
surface
#EDEAE9
border
#C8C6C5
text
#080504
muted
#7B7979

Preview Lab

Preview with #402826

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

Preview Lab → · Contrast checker → · Palette generator →

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