#400336#400336

#400336 is a dark, moderate purple. Relative luminance 0.014; OKLCH L 25.7% C 0.108 H 336.3°. Best body text is #FFFFFF at 16.35:1 contrast (WCAG AA passes).

Color values

HEX#400336
RGBrgb(64, 3, 54)
HSLhsl(310, 91%, 13%)
HSVhsv(310, 95%, 25%)
CMYKcmyk(0%, 95.3%, 15.6%, 74.9%)
CIE-LABlab(12.10, 33.53, -15.83)
CIE-LCHlch(12.10, 37.08, 334.72°)
OKLaboklab(25.67% 0.0988 -0.0433)
OKLCHoklch(25.67% 0.108 336.3)
XYZxyz(2.8128, 1.4217, 3.6156)
Luminance0.0142 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400336 #03400D
analogous
#2B0340 #400336 #400317
triadic
#400336 #364003 #033640
tetradic
#400336 #402B03 #03400D #031740
square
#400336 #402B03 #03400D #031740
split-complementary
#400336 #174003 #03402B
monochromatic
#1D0119 #1D0119 #400336 #7A0667 #B50899

Accessibility & contrast

On white

16.35
#400336 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#400336 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400336
16.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400336#FFFFFF#000000##FFFFFF
##4003361.0016.351.2816.35
#FFFFFF16.351.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041A37
Deuteranopia (green-blind)
#1B2335
Tritanopia (blue-blind)
#44071D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #400336;
/* rgb */ color: rgb(64, 3, 54);
/* oklch */ color: oklch(25.7% 0.108 336.3);
Tailwind
colors: {
  custom: {
    50: '#784d6d',
    500: '#400336',
    950: '#000000',
  },
}
SCSS
$custom: #400336;
$custom-light: #784d6d;
$custom-dark: #000000;
JSON
{
  "hex": "#400336",
  "rgb": {
    "r": 64,
    "g": 3,
    "b": 54
  },
  "hsl": {
    "h": 309.836,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.2567,
    "c": 0.10784,
    "h": 336.3
  },
  "luminance": 0.01421
}

Semantic roles & 50–950 ramp

primary
#400336
secondary
#1D822D
accent
#FF4C29
background
#F7F4F6
surface
#EDE7EB
border
#C8C3C6
text
#090207
muted
#7B787A

Preview Lab

Preview with #400336

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

Preview Lab → · Contrast checker → · Palette generator →

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