#40194E#40194E

#40194E is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.8% C 0.100 H 316.1°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#40194E
RGBrgb(64, 25, 78)
HSLhsl(284, 51%, 20%)
HSVhsv(284, 68%, 31%)
CMYKcmyk(17.9%, 67.9%, 0%, 69.4%)
CIE-LABlab(17.16, 28.60, -24.65)
CIE-LCHlch(17.16, 37.76, 319.24°)
OKLaboklab(29.81% 0.0717 -0.0691)
OKLCHoklch(29.81% 0.1 316.1)
XYZxyz(3.8369, 2.3354, 7.4549)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40194E #274E19
analogous
#25194E #40194E #4E1941
triadic
#40194E #4E4019 #194E40
tetradic
#40194E #4E2519 #274E19 #19414E
square
#40194E #4E2519 #274E19 #19414E
split-complementary
#40194E #414E19 #194E25
monochromatic
#130717 #1A0A20 #40194E #66287C #8C37AB

Accessibility & contrast

On white

14.31
#40194E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40194E
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40194E#FFFFFF#000000##FFFFFF
##40194E1.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40194e;
/* rgb */ color: rgb(64, 25, 78);
/* oklch */ color: oklch(29.8% 0.100 316.1);
Tailwind
colors: {
  custom: {
    50: '#775880',
    500: '#40194e',
    950: '#000000',
  },
}
SCSS
$custom: #40194e;
$custom-light: #775880;
$custom-dark: #000000;
JSON
{
  "hex": "#40194e",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 78
  },
  "hsl": {
    "h": 284.151,
    "s": 51.456,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29813,
    "c": 0.09956,
    "h": 316.1
  },
  "luminance": 0.02335
}

Semantic roles & 50–950 ramp

primary
#40194E
secondary
#51843E
accent
#DB4D72
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40194E

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

Preview Lab → · Contrast checker → · Palette generator →

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