#400437#400437

#400437 is a dark, moderate purple. Relative luminance 0.015; OKLCH L 25.8% C 0.107 H 335.5°. Best body text is #FFFFFF at 16.27:1 contrast (WCAG AA passes).

Color values

HEX#400437
RGBrgb(64, 4, 55)
HSLhsl(309, 88%, 13%)
HSVhsv(309, 94%, 25%)
CMYKcmyk(0%, 93.8%, 14.1%, 74.9%)
CIE-LABlab(12.31, 33.28, -16.23)
CIE-LCHlch(12.31, 37.03, 334.00°)
OKLaboklab(25.84% 0.0976 -0.0444)
OKLCHoklch(25.84% 0.107 335.5)
XYZxyz(2.8474, 1.4529, 3.7442)
Luminance0.0145 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400437 #04400D
analogous
#2B0440 #400437 #400419
triadic
#400437 #374004 #043740
tetradic
#400437 #402B04 #04400D #041940
square
#400437 #402B04 #04400D #041940
split-complementary
#400437 #194004 #04402B
monochromatic
#1D0219 #1D0219 #400437 #7A0868 #B30B9A

Accessibility & contrast

On white

16.27
#400437 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #400437
16.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400437#FFFFFF#000000##FFFFFF
##4004371.0016.271.2916.27
#FFFFFF16.271.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041A38
Deuteranopia (green-blind)
#1B2336
Tritanopia (blue-blind)
#44091E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400437;
/* rgb */ color: rgb(64, 4, 55);
/* oklch */ color: oklch(25.8% 0.107 335.5);
Tailwind
colors: {
  custom: {
    50: '#784d6e',
    500: '#400437',
    950: '#000000',
  },
}
SCSS
$custom: #400437;
$custom-light: #784d6e;
$custom-dark: #000000;
JSON
{
  "hex": "#400437",
  "rgb": {
    "r": 64,
    "g": 4,
    "b": 55
  },
  "hsl": {
    "h": 309,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.25836,
    "c": 0.10723,
    "h": 335.5
  },
  "luminance": 0.01453
}

Semantic roles & 50–950 ramp

primary
#400437
secondary
#1F812D
accent
#FE4929
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400437

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

Preview Lab → · Contrast checker → · Palette generator →

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