#400B42#400B42

#400B42 is a dark, moderate purple. Relative luminance 0.017; OKLCH L 27.2% C 0.108 H 326.4°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#400B42
RGBrgb(64, 11, 66)
HSLhsl(298, 71%, 15%)
HSVhsv(298, 83%, 26%)
CMYKcmyk(3%, 83.3%, 0%, 74.1%)
CIE-LABlab(13.96, 32.60, -21.44)
CIE-LCHlch(13.96, 39.02, 326.67°)
OKLaboklab(27.25% 0.0898 -0.0596)
OKLCHoklch(27.25% 0.108 326.4)
XYZxyz(3.2173, 1.7229, 5.3163)
Luminance0.0172 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400B42 #0D420B
analogous
#240B42 #400B42 #420B29
triadic
#400B42 #42400B #0B4240
tetradic
#400B42 #42240B #0D420B #0B2942
square
#400B42 #42240B #0D420B #0B2942
split-complementary
#400B42 #29420B #0B4224
monochromatic
#19041A #19041A #400B42 #731476 #A61CAB

Accessibility & contrast

On white

15.62
#400B42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#400B42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400B42
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400B42#FFFFFF#000000##FFFFFF
##400B421.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011F43
Deuteranopia (green-blind)
#182641
Tritanopia (blue-blind)
#421426
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #400b42;
/* rgb */ color: rgb(64, 11, 66);
/* oklch */ color: oklch(27.2% 0.108 326.4);
Tailwind
colors: {
  custom: {
    50: '#775176',
    500: '#400b42',
    950: '#000000',
  },
}
SCSS
$custom: #400b42;
$custom-light: #775176;
$custom-dark: #000000;
JSON
{
  "hex": "#400b42",
  "rgb": {
    "r": 64,
    "g": 11,
    "b": 66
  },
  "hsl": {
    "h": 297.818,
    "s": 71.429,
    "l": 15.098
  },
  "oklch": {
    "l": 0.27249,
    "c": 0.10779,
    "h": 326.4
  },
  "luminance": 0.01723
}

Semantic roles & 50–950 ramp

primary
#400B42
secondary
#2D7F2A
accent
#EE3A40
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090208
muted
#7B787B

Preview Lab

Preview with #400B42

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

Preview Lab → · Contrast checker → · Palette generator →

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