#40104B#40104B

#40104B is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.4% C 0.110 H 319.5°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#40104B
RGBrgb(64, 16, 75)
HSLhsl(289, 65%, 18%)
HSVhsv(289, 79%, 29%)
CMYKcmyk(14.7%, 78.7%, 0%, 70.6%)
CIE-LABlab(15.32, 32.43, -25.53)
CIE-LCHlch(15.32, 41.27, 321.79°)
OKLaboklab(28.42% 0.0837 -0.0715)
OKLCHoklch(28.42% 0.11 319.5)
XYZxyz(3.5695, 1.9687, 6.8472)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40104B #1B4B10
analogous
#23104B #40104B #4B1038
triadic
#40104B #4B4010 #104B40
tetradic
#40104B #4B2310 #1B4B10 #10384B
square
#40104B #4B2310 #1B4B10 #10384B
split-complementary
#40104B #384B10 #104B23
monochromatic
#160519 #160519 #40104B #6B1B7D #9626B0

Accessibility & contrast

On white

15.07
#40104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#40104B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40104B
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40104B#FFFFFF#000000##FFFFFF
##40104B1.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#15284A
Tritanopia (blue-blind)
#401B2C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40104b;
/* rgb */ color: rgb(64, 16, 75);
/* oklch */ color: oklch(28.4% 0.110 319.5);
Tailwind
colors: {
  custom: {
    50: '#77537e',
    500: '#40104b',
    950: '#000000',
  },
}
SCSS
$custom: #40104b;
$custom-light: #77537e;
$custom-dark: #000000;
JSON
{
  "hex": "#40104b",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 288.814,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28424,
    "c": 0.11008,
    "h": 319.5
  },
  "luminance": 0.01969
}

Semantic roles & 50–950 ramp

primary
#40104B
secondary
#418532
accent
#E8405F
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40104B

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

Preview Lab → · Contrast checker → · Palette generator →

#40104B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva