#40164D#40164D

#40164D is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.3% C 0.103 H 317.3°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#40164D
RGBrgb(64, 22, 77)
HSLhsl(286, 56%, 19%)
HSVhsv(286, 71%, 30%)
CMYKcmyk(16.9%, 71.4%, 0%, 69.8%)
CIE-LABlab(16.50, 29.98, -25.01)
CIE-LCHlch(16.50, 39.04, 320.16°)
OKLaboklab(29.32% 0.0759 -0.0701)
OKLCHoklch(29.32% 0.103 317.3)
XYZxyz(3.7406, 2.1998, 7.2473)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40164D #234D16
analogous
#25164D #40164D #4D163F
triadic
#40164D #4D4016 #164D40
tetradic
#40164D #4D2516 #234D16 #163F4D
square
#40164D #4D2516 #234D16 #163F4D
split-complementary
#40164D #3F4D16 #164D25
monochromatic
#140718 #18081D #40164D #68247D #8F31AC

Accessibility & contrast

On white

14.58
#40164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#40164D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40164D
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40164D#FFFFFF#000000##FFFFFF
##40164D1.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03264F
Deuteranopia (green-blind)
#172A4C
Tritanopia (blue-blind)
#40202F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40164d;
/* rgb */ color: rgb(64, 22, 77);
/* oklch */ color: oklch(29.3% 0.103 317.3);
Tailwind
colors: {
  custom: {
    50: '#77577f',
    500: '#40164d',
    950: '#000000',
  },
}
SCSS
$custom: #40164d;
$custom-light: #77577f;
$custom-dark: #000000;
JSON
{
  "hex": "#40164d",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 285.818,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29317,
    "c": 0.10333,
    "h": 317.3
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

primary
#40164D
secondary
#4C853A
accent
#DF496C
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40164D

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

Preview Lab → · Contrast checker → · Palette generator →

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