#40184D#40184D

#40184D is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.6% C 0.100 H 317.0°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#40184D
RGBrgb(64, 24, 77)
HSLhsl(285, 52%, 20%)
HSVhsv(285, 69%, 30%)
CMYKcmyk(16.9%, 68.8%, 0%, 69.8%)
CIE-LABlab(16.89, 28.91, -24.40)
CIE-LCHlch(16.89, 37.83, 319.84°)
OKLaboklab(29.6% 0.0731 -0.0683)
OKLCHoklch(29.6% 0.1 317)
XYZxyz(3.7803, 2.2792, 7.2605)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40184D #254D18
analogous
#26184D #40184D #4D1840
triadic
#40184D #4D4018 #184D40
tetradic
#40184D #4D2618 #254D18 #18404D
square
#40184D #4D2618 #254D18 #18404D
split-complementary
#40184D #404D18 #184D26
monochromatic
#130717 #19091E #40184D #67277C #8E35AA

Accessibility & contrast

On white

14.43
#40184D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#40184D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40184D
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40184D#FFFFFF#000000##FFFFFF
##40184D1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07274F
Deuteranopia (green-blind)
#192B4C
Tritanopia (blue-blind)
#3F2130
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40184d;
/* rgb */ color: rgb(64, 24, 77);
/* oklch */ color: oklch(29.6% 0.100 317.0);
Tailwind
colors: {
  custom: {
    50: '#77587f',
    500: '#40184d',
    950: '#000000',
  },
}
SCSS
$custom: #40184d;
$custom-light: #77587f;
$custom-dark: #000000;
JSON
{
  "hex": "#40184d",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 77
  },
  "hsl": {
    "h": 285.283,
    "s": 52.475,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29596,
    "c": 0.10008,
    "h": 317
  },
  "luminance": 0.02279
}

Semantic roles & 50–950 ramp

primary
#40184D
secondary
#4E843D
accent
#DC4C6F
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40184D

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

Preview Lab → · Contrast checker → · Palette generator →

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