#400B46#400B46

#400B46 is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.112 H 323.4°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#400B46
RGBrgb(64, 11, 70)
HSLhsl(294, 73%, 16%)
HSVhsv(294, 84%, 27%)
CMYKcmyk(8.6%, 84.3%, 0%, 72.5%)
CIE-LABlab(14.24, 33.42, -23.80)
CIE-LCHlch(14.24, 41.02, 324.54°)
OKLaboklab(27.54% 0.0896 -0.0664)
OKLCHoklch(27.54% 0.112 323.4)
XYZxyz(3.3394, 1.7717, 5.9592)
Luminance0.0177 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B46 #11460B
analogous
#220B46 #400B46 #460B2E
triadic
#400B46 #46400B #0B4640
tetradic
#400B46 #46220B #11460B #0B2E46
square
#400B46 #46220B #11460B #0B2E46
split-complementary
#400B46 #2E460B #0B4622
monochromatic
#18041A #18041A #400B46 #70137B #A11CB0

Accessibility & contrast

On white

15.51
#400B46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#400B46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B46
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B46#FFFFFF#000000##FFFFFF
##400B461.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002048
Deuteranopia (green-blind)
#152645
Tritanopia (blue-blind)
#411628
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400b46;
/* rgb */ color: rgb(64, 11, 70);
/* oklch */ color: oklch(27.5% 0.112 323.4);
Tailwind
colors: {
  custom: {
    50: '#77517a',
    500: '#400b46',
    950: '#000000',
  },
}
SCSS
$custom: #400b46;
$custom-light: #77517a;
$custom-dark: #000000;
JSON
{
  "hex": "#400b46",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 70
  },
  "hsl": {
    "h": 293.898,
    "s": 72.84,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27538,
    "c": 0.11154,
    "h": 323.4
  },
  "luminance": 0.01772
}

Semantic roles & 50–950 ramp

primary
#400B46
secondary
#33822A
accent
#F0384B
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090209
muted
#7B787B

Preview Lab

Preview with #400B46

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

Preview Lab → · Contrast checker → · Palette generator →

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