#400844#400844

#400844 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.1% C 0.113 H 325.1°. Best body text is #FFFFFF at 15.72:1 contrast (WCAG AA passes).

Color values

HEX#400844
RGBrgb(64, 8, 68)
HSLhsl(296, 79%, 15%)
HSVhsv(296, 88%, 27%)
CMYKcmyk(5.9%, 88.2%, 0%, 73.3%)
CIE-LABlab(13.72, 34.11, -23.24)
CIE-LCHlch(13.72, 41.27, 325.74°)
OKLaboklab(27.12% 0.0928 -0.0648)
OKLCHoklch(27.12% 0.113 325.1)
XYZxyz(3.2445, 1.6812, 5.6213)
Luminance0.0168 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400844 #0C4408
analogous
#220844 #400844 #44082A
triadic
#400844 #444008 #084440
tetradic
#400844 #442208 #0C4408 #082A44
square
#400844 #442208 #0C4408 #082A44
split-complementary
#400844 #2A4408 #084422
monochromatic
#1A031B #1A031B #400844 #740E7B #A715B2

Accessibility & contrast

On white

15.72
#400844 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400844 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400844
15.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400844#FFFFFF#000000##FFFFFF
##4008441.0015.721.3415.72
#FFFFFF15.721.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F46
Deuteranopia (green-blind)
#152543
Tritanopia (blue-blind)
#421426
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #400844;
/* rgb */ color: rgb(64, 8, 68);
/* oklch */ color: oklch(27.1% 0.113 325.1);
Tailwind
colors: {
  custom: {
    50: '#775078',
    500: '#400844',
    950: '#000000',
  },
}
SCSS
$custom: #400844;
$custom-light: #775078;
$custom-dark: #000000;
JSON
{
  "hex": "#400844",
  "rgb": {
    "r": 64,
    "g": 8,
    "b": 68
  },
  "hsl": {
    "h": 296,
    "s": 78.947,
    "l": 14.902
  },
  "oklch": {
    "l": 0.2712,
    "c": 0.11316,
    "h": 325.1
  },
  "luminance": 0.01681
}

Semantic roles & 50–950 ramp

primary
#400844
secondary
#2C8226
accent
#F5323F
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400844

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

Preview Lab → · Contrast checker → · Palette generator →

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