#40194B#40194B

#40194B is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.6% C 0.096 H 318.2°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#40194B
RGBrgb(64, 25, 75)
HSLhsl(287, 50%, 20%)
HSVhsv(287, 67%, 29%)
CMYKcmyk(14.7%, 66.7%, 0%, 70.6%)
CIE-LABlab(16.96, 27.88, -22.92)
CIE-LCHlch(16.96, 36.09, 320.58°)
OKLaboklab(29.6% 0.0717 -0.064)
OKLCHoklch(29.6% 0.096 318.2)
XYZxyz(3.7318, 2.2934, 6.9013)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40194B #244B19
analogous
#27194B #40194B #4B193D
triadic
#40194B #4B4019 #194B40
tetradic
#40194B #4B2719 #244B19 #193D4B
square
#40194B #4B2719 #244B19 #193D4B
split-complementary
#40194B #3D4B19 #194B27
monochromatic
#140817 #190A1D #40194B #672879 #8E38A7

Accessibility & contrast

On white

14.40
#40194B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40194B
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40194B#FFFFFF#000000##FFFFFF
##40194B1.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)
#0C274D
Deuteranopia (green-blind)
#1B2B4A
Tritanopia (blue-blind)
#40212F
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40194b;
/* rgb */ color: rgb(64, 25, 75);
/* oklch */ color: oklch(29.6% 0.096 318.2);
Tailwind
colors: {
  custom: {
    50: '#77587d',
    500: '#40194b',
    950: '#000000',
  },
}
SCSS
$custom: #40194b;
$custom-light: #77587d;
$custom-dark: #000000;
JSON
{
  "hex": "#40194b",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 75
  },
  "hsl": {
    "h": 286.8,
    "s": 50,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29603,
    "c": 0.09607,
    "h": 318.2
  },
  "luminance": 0.02293
}

Semantic roles & 50–950 ramp

primary
#40194B
secondary
#4D813E
accent
#DA4E6D
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40194B

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

Preview Lab → · Contrast checker → · Palette generator →

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