#402448#402448

#402448 is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.3% C 0.071 H 318.5°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#402448
RGBrgb(64, 36, 72)
HSLhsl(287, 33%, 21%)
HSVhsv(287, 50%, 28%)
CMYKcmyk(11.1%, 50%, 0%, 71.8%)
CIE-LABlab(19.31, 20.49, -17.16)
CIE-LCHlch(19.31, 26.73, 320.05°)
OKLaboklab(31.28% 0.0535 -0.0474)
OKLCHoklch(31.28% 0.071 318.5)
XYZxyz(3.9148, 2.8197, 6.4677)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402448 #2C4824
analogous
#2E2448 #402448 #48243E
triadic
#402448 #484024 #244840
tetradic
#402448 #482E24 #2C4824 #243E48
square
#402448 #482E24 #2C4824 #243E48
split-complementary
#402448 #3E4824 #24482E
monochromatic
#120A14 #1C101F #402448 #643871 #894D9A

Accessibility & contrast

On white

13.43
#402448 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#402448 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402448
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402448#FFFFFF#000000##FFFFFF
##4024481.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2D49
Deuteranopia (green-blind)
#263047
Tritanopia (blue-blind)
#402932
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #402448;
/* rgb */ color: rgb(64, 36, 72);
/* oklch */ color: oklch(31.3% 0.071 318.5);
Tailwind
colors: {
  custom: {
    50: '#765f7b',
    500: '#402448',
    950: '#000000',
  },
}
SCSS
$custom: #402448;
$custom-light: #765f7b;
$custom-dark: #000000;
JSON
{
  "hex": "#402448",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 72
  },
  "hsl": {
    "h": 286.667,
    "s": 33.333,
    "l": 21.176
  },
  "oklch": {
    "l": 0.31277,
    "c": 0.07148,
    "h": 318.5
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#402448
secondary
#577B4D
accent
#C95E76
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080409
muted
#7B797B

Preview Lab

Preview with #402448

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

Preview Lab → · Contrast checker → · Palette generator →

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