#40184F#40184F

#40184F is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.7% C 0.102 H 315.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#40184F
RGBrgb(64, 24, 79)
HSLhsl(284, 53%, 20%)
HSVhsv(284, 70%, 31%)
CMYKcmyk(19%, 69.6%, 0%, 69%)
CIE-LABlab(17.03, 29.39, -25.54)
CIE-LCHlch(17.03, 38.94, 319.01°)
OKLaboklab(29.74% 0.0731 -0.0716)
OKLCHoklch(29.74% 0.102 315.6)
XYZxyz(3.8520, 2.3079, 7.6382)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40184F #274F18
analogous
#24184F #40184F #4F1843
triadic
#40184F #4F4018 #184F40
tetradic
#40184F #4F2418 #274F18 #18434F
square
#40184F #4F2418 #274F18 #18434F
split-complementary
#40184F #434F18 #184F24
monochromatic
#130717 #1A0A20 #40184F #66267E #8C35AD

Accessibility & contrast

On white

14.37
#40184F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40184F
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40184F#FFFFFF#000000##FFFFFF
##40184F1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052851
Deuteranopia (green-blind)
#182B4E
Tritanopia (blue-blind)
#3F2231
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40184f;
/* rgb */ color: rgb(64, 24, 79);
/* oklch */ color: oklch(29.7% 0.102 315.6);
Tailwind
colors: {
  custom: {
    50: '#775881',
    500: '#40184f',
    950: '#000000',
  },
}
SCSS
$custom: #40184f;
$custom-light: #775881;
$custom-dark: #000000;
JSON
{
  "hex": "#40184f",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 79
  },
  "hsl": {
    "h": 283.636,
    "s": 53.398,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2974,
    "c": 0.10237,
    "h": 315.6
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#40184F
secondary
#51863D
accent
#DD4B73
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40184F

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

Preview Lab → · Contrast checker → · Palette generator →

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