#40184C#40184C

#40184C is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.5% C 0.099 H 317.7°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#40184C
RGBrgb(64, 24, 76)
HSLhsl(286, 52%, 20%)
HSVhsv(286, 68%, 30%)
CMYKcmyk(15.8%, 68.4%, 0%, 70.2%)
CIE-LABlab(16.82, 28.67, -23.82)
CIE-LCHlch(16.82, 37.28, 320.28°)
OKLaboklab(29.53% 0.0731 -0.0666)
OKLCHoklch(29.53% 0.099 317.7)
XYZxyz(3.7453, 2.2652, 7.0760)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40184C #244C18
analogous
#26184C #40184C #4C183E
triadic
#40184C #4C4018 #184C40
tetradic
#40184C #4C2618 #244C18 #183E4C
square
#40184C #4C2618 #244C18 #183E4C
split-complementary
#40184C #3E4C18 #184C26
monochromatic
#140717 #19091D #40184C #67277B #8E35A9

Accessibility & contrast

On white

14.45
#40184C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40184C
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40184C#FFFFFF#000000##FFFFFF
##40184C1.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#09274E
Deuteranopia (green-blind)
#1A2B4B
Tritanopia (blue-blind)
#40212F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40184c;
/* rgb */ color: rgb(64, 24, 76);
/* oklch */ color: oklch(29.5% 0.099 317.7);
Tailwind
colors: {
  custom: {
    50: '#77587e',
    500: '#40184c',
    950: '#000000',
  },
}
SCSS
$custom: #40184c;
$custom-light: #77587e;
$custom-dark: #000000;
JSON
{
  "hex": "#40184c",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 76
  },
  "hsl": {
    "h": 286.154,
    "s": 52,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29526,
    "c": 0.09893,
    "h": 317.7
  },
  "luminance": 0.02265
}

Semantic roles & 50–950 ramp

primary
#40184C
secondary
#4D833D
accent
#DB4C6D
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40184C

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

Preview Lab → · Contrast checker → · Palette generator →

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