#40194A#40194A

#40194A is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.5% C 0.095 H 319.0°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#40194A
RGBrgb(64, 25, 74)
HSLhsl(288, 49%, 19%)
HSVhsv(288, 66%, 29%)
CMYKcmyk(13.5%, 66.2%, 0%, 71%)
CIE-LABlab(16.89, 27.65, -22.34)
CIE-LCHlch(16.89, 35.54, 321.07°)
OKLaboklab(29.53% 0.0716 -0.0623)
OKLCHoklch(29.53% 0.095 319)
XYZxyz(3.6979, 2.2798, 6.7225)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40194A #234A19
analogous
#28194A #40194A #4A193C
triadic
#40194A #4A4019 #194A40
tetradic
#40194A #4A2819 #234A19 #193C4A
square
#40194A #4A2819 #234A19 #193C4A
split-complementary
#40194A #3C4A19 #194A28
monochromatic
#140817 #180A1C #40194A #682878 #8F38A5

Accessibility & contrast

On white

14.42
#40194A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#40194A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40194A
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40194A#FFFFFF#000000##FFFFFF
##40194A1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D274C
Deuteranopia (green-blind)
#1C2B49
Tritanopia (blue-blind)
#40212E
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40194a;
/* rgb */ color: rgb(64, 25, 74);
/* oklch */ color: oklch(29.5% 0.095 319.0);
Tailwind
colors: {
  custom: {
    50: '#77587d',
    500: '#40194a',
    950: '#000000',
  },
}
SCSS
$custom: #40194a;
$custom-light: #77587d;
$custom-dark: #000000;
JSON
{
  "hex": "#40194a",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 74
  },
  "hsl": {
    "h": 287.755,
    "s": 49.495,
    "l": 19.412
  },
  "oklch": {
    "l": 0.29534,
    "c": 0.09492,
    "h": 319
  },
  "luminance": 0.0228
}

Semantic roles & 50–950 ramp

primary
#40194A
secondary
#4C803E
accent
#D94F6B
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #40194A

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

Preview Lab → · Contrast checker → · Palette generator →

#40194A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva