#40164B#40164B

#40164B is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.2% C 0.101 H 318.7°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#40164B
RGBrgb(64, 22, 75)
HSLhsl(288, 55%, 19%)
HSVhsv(288, 71%, 29%)
CMYKcmyk(14.7%, 70.7%, 0%, 70.6%)
CIE-LABlab(16.37, 29.51, -23.86)
CIE-LCHlch(16.37, 37.95, 321.04°)
OKLaboklab(29.17% 0.076 -0.0667)
OKLCHoklch(29.17% 0.101 318.7)
XYZxyz(3.6711, 2.1720, 6.8811)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40164B #214B16
analogous
#26164B #40164B #4B163C
triadic
#40164B #4B4016 #164B40
tetradic
#40164B #4B2616 #214B16 #163C4B
square
#40164B #4B2616 #214B16 #163C4B
split-complementary
#40164B #3C4B16 #164B26
monochromatic
#140718 #18081C #40164B #68247A #9132AA

Accessibility & contrast

On white

14.64
#40164B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40164B
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40164B#FFFFFF#000000##FFFFFF
##40164B1.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06264D
Deuteranopia (green-blind)
#192A4A
Tritanopia (blue-blind)
#401F2E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40164b;
/* rgb */ color: rgb(64, 22, 75);
/* oklch */ color: oklch(29.2% 0.101 318.7);
Tailwind
colors: {
  custom: {
    50: '#77577d',
    500: '#40164b',
    950: '#000000',
  },
}
SCSS
$custom: #40164b;
$custom-light: #77577d;
$custom-dark: #000000;
JSON
{
  "hex": "#40164b",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 75
  },
  "hsl": {
    "h": 287.547,
    "s": 54.639,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29173,
    "c": 0.1011,
    "h": 318.7
  },
  "luminance": 0.02172
}

Semantic roles & 50–950 ramp

primary
#40164B
secondary
#49833A
accent
#DE4A69
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40164B

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

Preview Lab → · Contrast checker → · Palette generator →

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