#40164A#40164A

#40164A is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.1% C 0.100 H 319.4°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#40164A
RGBrgb(64, 22, 74)
HSLhsl(288, 54%, 19%)
HSVhsv(288, 70%, 29%)
CMYKcmyk(13.5%, 70.3%, 0%, 71%)
CIE-LABlab(16.30, 29.28, -23.28)
CIE-LCHlch(16.30, 37.41, 321.51°)
OKLaboklab(29.1% 0.076 -0.065)
OKLCHoklch(29.1% 0.1 319.4)
XYZxyz(3.6371, 2.1584, 6.7023)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40164A #204A16
analogous
#26164A #40164A #4A163A
triadic
#40164A #4A4016 #164A40
tetradic
#40164A #4A2616 #204A16 #163A4A
square
#40164A #4A2616 #204A16 #163A4A
split-complementary
#40164A #3A4A16 #164A26
monochromatic
#140718 #17081B #40164A #692479 #9232A8

Accessibility & contrast

On white

14.67
#40164A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#40164A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40164A
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40164A#FFFFFF#000000##FFFFFF
##40164A1.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07264C
Deuteranopia (green-blind)
#1A2A49
Tritanopia (blue-blind)
#401F2D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40164a;
/* rgb */ color: rgb(64, 22, 74);
/* oklch */ color: oklch(29.1% 0.100 319.4);
Tailwind
colors: {
  custom: {
    50: '#77577d',
    500: '#40164a',
    950: '#000000',
  },
}
SCSS
$custom: #40164a;
$custom-light: #77577d;
$custom-dark: #000000;
JSON
{
  "hex": "#40164a",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 74
  },
  "hsl": {
    "h": 288.462,
    "s": 54.167,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29103,
    "c": 0.09999,
    "h": 319.4
  },
  "luminance": 0.02158
}

Semantic roles & 50–950 ramp

primary
#40164A
secondary
#48823A
accent
#DE4A67
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #40164A

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

Preview Lab → · Contrast checker → · Palette generator →

#40164A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva