#40184B#40184B

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

Color values

HEX#40184B
RGBrgb(64, 24, 75)
HSLhsl(287, 52%, 19%)
HSVhsv(287, 68%, 29%)
CMYKcmyk(14.7%, 68%, 0%, 70.6%)
CIE-LABlab(16.75, 28.44, -23.24)
CIE-LCHlch(16.75, 36.73, 320.74°)
OKLaboklab(29.46% 0.0731 -0.0649)
OKLCHoklch(29.46% 0.098 318.4)
XYZxyz(3.7108, 2.2514, 6.8943)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40184B #234B18
analogous
#27184B #40184B #4B183D
triadic
#40184B #4B4018 #184B40
tetradic
#40184B #4B2718 #234B18 #183D4B
square
#40184B #4B2718 #234B18 #183D4B
split-complementary
#40184B #3D4B18 #184B27
monochromatic
#140717 #18091D #40184B #682779 #8F36A8

Accessibility & contrast

On white

14.48
#40184B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40184B
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40184B#FFFFFF#000000##FFFFFF
##40184B1.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A274D
Deuteranopia (green-blind)
#1B2B4A
Tritanopia (blue-blind)
#40212F
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40184b;
/* rgb */ color: rgb(64, 24, 75);
/* oklch */ color: oklch(29.5% 0.098 318.4);
Tailwind
colors: {
  custom: {
    50: '#77587d',
    500: '#40184b',
    950: '#000000',
  },
}
SCSS
$custom: #40184b;
$custom-light: #77587d;
$custom-dark: #000000;
JSON
{
  "hex": "#40184b",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 75
  },
  "hsl": {
    "h": 287.059,
    "s": 51.515,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29456,
    "c": 0.09778,
    "h": 318.4
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#40184B
secondary
#4C823D
accent
#DB4D6B
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40184B

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

Preview Lab → · Contrast checker → · Palette generator →

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