#40164F#40164F

#40164F is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.5% C 0.106 H 315.9°. Best body text is #FFFFFF at 14.53:1 contrast (WCAG AA passes).

Color values

HEX#40164F
RGBrgb(64, 22, 79)
HSLhsl(284, 56%, 20%)
HSVhsv(284, 72%, 31%)
CMYKcmyk(19%, 72.2%, 0%, 69%)
CIE-LABlab(16.64, 30.45, -26.16)
CIE-LCHlch(16.64, 40.14, 319.34°)
OKLaboklab(29.46% 0.0759 -0.0734)
OKLCHoklch(29.46% 0.106 315.9)
XYZxyz(3.8123, 2.2285, 7.6249)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40164F #254F16
analogous
#24164F #40164F #4F1641
triadic
#40164F #4F4016 #164F40
tetradic
#40164F #4F2416 #254F16 #16414F
square
#40164F #4F2416 #254F16 #16414F
split-complementary
#40164F #414F16 #164F24
monochromatic
#130718 #19091F #40164F #67237F #8E31AF

Accessibility & contrast

On white

14.53
#40164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#40164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40164F
14.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40164F#FFFFFF#000000##FFFFFF
##40164F1.0014.531.4514.53
#FFFFFF14.531.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012751
Deuteranopia (green-blind)
#162A4E
Tritanopia (blue-blind)
#3F2130
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40164f;
/* rgb */ color: rgb(64, 22, 79);
/* oklch */ color: oklch(29.5% 0.106 315.9);
Tailwind
colors: {
  custom: {
    50: '#775781',
    500: '#40164f',
    950: '#000000',
  },
}
SCSS
$custom: #40164f;
$custom-light: #775781;
$custom-dark: #000000;
JSON
{
  "hex": "#40164f",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 284.211,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29463,
    "c": 0.10557,
    "h": 315.9
  },
  "luminance": 0.02228
}

Semantic roles & 50–950 ramp

primary
#40164F
secondary
#4E863A
accent
#E04870
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40164F

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

Preview Lab → · Contrast checker → · Palette generator →

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