#400439#400439

#400439 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.0% C 0.109 H 333.8°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#400439
RGBrgb(64, 4, 57)
HSLhsl(307, 88%, 13%)
HSVhsv(307, 94%, 25%)
CMYKcmyk(0%, 93.8%, 10.9%, 74.9%)
CIE-LABlab(12.43, 33.62, -17.48)
CIE-LCHlch(12.43, 37.89, 332.54°)
OKLaboklab(25.97% 0.0976 -0.048)
OKLCHoklch(25.97% 0.109 333.8)
XYZxyz(2.8963, 1.4725, 4.0018)
Luminance0.0147 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400439 #04400B
analogous
#290440 #400439 #40041B
triadic
#400439 #394004 #043940
tetradic
#400439 #402904 #04400B #041B40
square
#400439 #402904 #04400B #041B40
split-complementary
#400439 #1B4004 #044029
monochromatic
#1D021A #1D021A #400439 #7A086C #B30BA0

Accessibility & contrast

On white

16.22
#400439 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#400439 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400439
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400439#FFFFFF#000000##FFFFFF
##4004391.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021B3A
Deuteranopia (green-blind)
#1A2338
Tritanopia (blue-blind)
#430A1F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400439;
/* rgb */ color: rgb(64, 4, 57);
/* oklch */ color: oklch(26.0% 0.109 333.8);
Tailwind
colors: {
  custom: {
    50: '#784d6f',
    500: '#400439',
    950: '#000000',
  },
}
SCSS
$custom: #400439;
$custom-light: #784d6f;
$custom-dark: #000000;
JSON
{
  "hex": "#400439",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 57
  },
  "hsl": {
    "h": 307,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25967,
    "c": 0.10881,
    "h": 333.8
  },
  "luminance": 0.01472
}

Semantic roles & 50–950 ramp

primary
#400439
secondary
#1F812A
accent
#FE4229
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #400439

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

Preview Lab → · Contrast checker → · Palette generator →

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