#40184A#40184A

#40184A is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.4% C 0.097 H 319.1°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#40184A
RGBrgb(64, 24, 74)
HSLhsl(288, 51%, 19%)
HSVhsv(288, 68%, 29%)
CMYKcmyk(13.5%, 67.6%, 0%, 71%)
CIE-LABlab(16.69, 28.20, -22.66)
CIE-LCHlch(16.69, 36.18, 321.22°)
OKLaboklab(29.39% 0.0731 -0.0632)
OKLCHoklch(29.39% 0.097 319.1)
XYZxyz(3.6769, 2.2378, 6.7155)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40184A #224A18
analogous
#27184A #40184A #4A183B
triadic
#40184A #4A4018 #184A40
tetradic
#40184A #4A2718 #224A18 #183B4A
square
#40184A #4A2718 #224A18 #183B4A
split-complementary
#40184A #3B4A18 #184A27
monochromatic
#140717 #18091C #40184A #682778 #9036A6

Accessibility & contrast

On white

14.51
#40184A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#40184A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40184A
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40184A#FFFFFF#000000##FFFFFF
##40184A1.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B274C
Deuteranopia (green-blind)
#1B2B49
Tritanopia (blue-blind)
#40202E
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40184a;
/* rgb */ color: rgb(64, 24, 74);
/* oklch */ color: oklch(29.4% 0.097 319.1);
Tailwind
colors: {
  custom: {
    50: '#77587d',
    500: '#40184a',
    950: '#000000',
  },
}
SCSS
$custom: #40184a;
$custom-light: #77587d;
$custom-dark: #000000;
JSON
{
  "hex": "#40184a",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 74
  },
  "hsl": {
    "h": 288,
    "s": 51.02,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29386,
    "c": 0.09665,
    "h": 319.1
  },
  "luminance": 0.02238
}

Semantic roles & 50–950 ramp

primary
#40184A
secondary
#4B813D
accent
#DA4D6A
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #40184A

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

Preview Lab → · Contrast checker → · Palette generator →

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