#40184E#40184E

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

Color values

HEX#40184E
RGBrgb(64, 24, 78)
HSLhsl(284, 53%, 20%)
HSVhsv(284, 69%, 31%)
CMYKcmyk(17.9%, 69.2%, 0%, 69.4%)
CIE-LABlab(16.96, 29.15, -24.97)
CIE-LCHlch(16.96, 38.38, 319.41°)
OKLaboklab(29.67% 0.0731 -0.07)
OKLCHoklch(29.67% 0.101 316.3)
XYZxyz(3.8159, 2.2935, 7.4479)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40184E #264E18
analogous
#25184E #40184E #4E1841
triadic
#40184E #4E4018 #184E40
tetradic
#40184E #4E2518 #264E18 #18414E
square
#40184E #4E2518 #264E18 #18414E
split-complementary
#40184E #414E18 #184E25
monochromatic
#130717 #1A0A1F #40184E #66267D #8D35AC

Accessibility & contrast

On white

14.40
#40184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40184E
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40184E#FFFFFF#000000##FFFFFF
##40184E1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062750
Deuteranopia (green-blind)
#182B4D
Tritanopia (blue-blind)
#3F2230
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40184e;
/* rgb */ color: rgb(64, 24, 78);
/* oklch */ color: oklch(29.7% 0.101 316.3);
Tailwind
colors: {
  custom: {
    50: '#775880',
    500: '#40184e',
    950: '#000000',
  },
}
SCSS
$custom: #40184e;
$custom-light: #775880;
$custom-dark: #000000;
JSON
{
  "hex": "#40184e",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 284.444,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.29668,
    "c": 0.10122,
    "h": 316.3
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#40184E
secondary
#50853D
accent
#DC4B71
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40184E

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

Preview Lab → · Contrast checker → · Palette generator →

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