#402244#402244

#402244 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 30.7% C 0.071 H 322.7°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#402244
RGBrgb(64, 34, 68)
HSLhsl(293, 33%, 20%)
HSVhsv(293, 50%, 27%)
CMYKcmyk(5.9%, 50%, 0%, 73.3%)
CIE-LABlab(18.59, 20.81, -15.54)
CIE-LCHlch(18.59, 25.97, 323.25°)
OKLaboklab(30.67% 0.0561 -0.0427)
OKLCHoklch(30.67% 0.071 322.7)
XYZxyz(3.7297, 2.6516, 5.7831)
Luminance0.0265 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402244 #264422
analogous
#2F2244 #402244 #442237
triadic
#402244 #444022 #224440
tetradic
#402244 #442F22 #264422 #223744
square
#402244 #442F22 #264422 #223744
split-complementary
#402244 #374422 #22442F
monochromatic
#130A14 #1A0E1B #402244 #66366D #8D4B96

Accessibility & contrast

On white

13.72
#402244 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#402244 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402244
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402244#FFFFFF#000000##FFFFFF
##4022441.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E2B45
Deuteranopia (green-blind)
#262E43
Tritanopia (blue-blind)
#41262F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #402244;
/* rgb */ color: rgb(64, 34, 68);
/* oklch */ color: oklch(30.7% 0.071 322.7);
Tailwind
colors: {
  custom: {
    50: '#765e78',
    500: '#402244',
    950: '#000000',
  },
}
SCSS
$custom: #402244;
$custom-light: #765e78;
$custom-dark: #000000;
JSON
{
  "hex": "#402244",
  "rgb": {
    "r": 64,
    "g": 34,
    "b": 68
  },
  "hsl": {
    "h": 292.941,
    "s": 33.333,
    "l": 20
  },
  "oklch": {
    "l": 0.30671,
    "c": 0.07054,
    "h": 322.7
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#402244
secondary
#50784A
accent
#C95E6B
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#080409
muted
#7B797B

Preview Lab

Preview with #402244

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

Preview Lab → · Contrast checker → · Palette generator →

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