#400B56#400B56

#400B56 is a dark, vivid purple. Relative luminance 0.020; OKLCH L 28.8% C 0.127 H 313.1°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#400B56
RGBrgb(64, 11, 86)
HSLhsl(282, 77%, 19%)
HSVhsv(282, 87%, 34%)
CMYKcmyk(25.6%, 87.2%, 0%, 66.3%)
CIE-LABlab(15.49, 36.90, -32.76)
CIE-LCHlch(15.49, 49.35, 318.40°)
OKLaboklab(28.82% 0.0869 -0.0927)
OKLCHoklch(28.82% 0.127 313.1)
XYZxyz(3.9134, 2.0013, 8.9824)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B56 #21560B
analogous
#1B0B56 #400B56 #560B47
triadic
#400B56 #56400B #0B5640
tetradic
#400B56 #561B0B #21560B #0B4756
square
#400B56 #561B0B #21560B #0B4756
split-complementary
#400B56 #47560B #0B561B
monochromatic
#14031B #180420 #400B56 #68128C #9119C3

Accessibility & contrast

On white

15.00
#400B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#400B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B56
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B56#FFFFFF#000000##FFFFFF
##400B561.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#022854
Tritanopia (blue-blind)
#3E1E31
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #400b56;
/* rgb */ color: rgb(64, 11, 86);
/* oklch */ color: oklch(28.8% 0.127 313.1);
Tailwind
colors: {
  custom: {
    50: '#785286',
    500: '#400b56',
    950: '#000000',
  },
}
SCSS
$custom: #400b56;
$custom-light: #785286;
$custom-dark: #000000;
JSON
{
  "hex": "#400b56",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 86
  },
  "hsl": {
    "h": 282.4,
    "s": 77.32,
    "l": 19.02
  },
  "oklch": {
    "l": 0.2882,
    "c": 0.1271,
    "h": 313.1
  },
  "luminance": 0.02001
}

Semantic roles & 50–950 ramp

primary
#400B56
secondary
#49912B
accent
#F4346C
background
#F7F4F8
surface
#EEE7EF
border
#C9C3CA
text
#09020B
muted
#7B787C

Preview Lab

Preview with #400B56

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

Preview Lab → · Contrast checker → · Palette generator →

#400B56 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva