#40194F#40194F

#40194F is a dark, moderate purple. Relative luminance 0.024; OKLCH L 29.9% C 0.101 H 315.4°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#40194F
RGBrgb(64, 25, 79)
HSLhsl(283, 52%, 20%)
HSVhsv(283, 68%, 31%)
CMYKcmyk(19%, 68.4%, 0%, 69%)
CIE-LABlab(17.23, 28.84, -25.22)
CIE-LCHlch(17.23, 38.32, 318.83°)
OKLaboklab(29.88% 0.0717 -0.0707)
OKLCHoklch(29.88% 0.101 315.4)
XYZxyz(3.8730, 2.3499, 7.6452)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40194F #284F19
analogous
#25194F #40194F #4F1943
triadic
#40194F #4F4019 #194F40
tetradic
#40194F #4F2519 #284F19 #19434F
square
#40194F #4F2519 #284F19 #19434F
split-complementary
#40194F #434F19 #194F25
monochromatic
#130717 #1A0A21 #40194F #66287D #8B36AC

Accessibility & contrast

On white

14.29
#40194F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#40194F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40194F
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40194F#FFFFFF#000000##FFFFFF
##40194F1.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40194f;
/* rgb */ color: rgb(64, 25, 79);
/* oklch */ color: oklch(29.9% 0.101 315.4);
Tailwind
colors: {
  custom: {
    50: '#775881',
    500: '#40194f',
    950: '#000000',
  },
}
SCSS
$custom: #40194f;
$custom-light: #775881;
$custom-dark: #000000;
JSON
{
  "hex": "#40194f",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 79
  },
  "hsl": {
    "h": 283.333,
    "s": 51.923,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29884,
    "c": 0.10072,
    "h": 315.4
  },
  "luminance": 0.0235
}

Semantic roles & 50–950 ramp

primary
#40194F
secondary
#52853E
accent
#DB4C74
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40194F

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

Preview Lab → · Contrast checker → · Palette generator →

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