#40094A#40094A

#40094A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.118 H 320.8°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#40094A
RGBrgb(64, 9, 74)
HSLhsl(291, 78%, 16%)
HSVhsv(291, 88%, 29%)
CMYKcmyk(13.5%, 87.8%, 0%, 71%)
CIE-LABlab(14.29, 34.97, -26.50)
CIE-LCHlch(14.29, 43.87, 322.84°)
OKLaboklab(27.67% 0.0911 -0.0743)
OKLCHoklch(27.67% 0.118 320.8)
XYZxyz(3.4479, 1.7800, 6.6392)
Luminance0.0178 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40094A #134A09
analogous
#20094A #40094A #4A0934
triadic
#40094A #4A4009 #094A40
tetradic
#40094A #4A2009 #134A09 #09344A
square
#40094A #4A2009 #134A09 #09344A
split-complementary
#40094A #344A09 #094A20
monochromatic
#18031B #18031B #40094A #6F1081 #9E16B7

Accessibility & contrast

On white

15.49
#40094A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#40094A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40094A
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40094A#FFFFFF#000000##FFFFFF
##40094A1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204C
Deuteranopia (green-blind)
#112649
Tritanopia (blue-blind)
#40172A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40094a;
/* rgb */ color: rgb(64, 9, 74);
/* oklch */ color: oklch(27.7% 0.118 320.8);
Tailwind
colors: {
  custom: {
    50: '#78507d',
    500: '#40094a',
    950: '#000000',
  },
}
SCSS
$custom: #40094a;
$custom-light: #78507d;
$custom-dark: #000000;
JSON
{
  "hex": "#40094a",
  "rgb": {
    "r": 64,
    "g": 9,
    "b": 74
  },
  "hsl": {
    "h": 290.769,
    "s": 78.313,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27666,
    "c": 0.11756,
    "h": 320.8
  },
  "luminance": 0.0178
}

Semantic roles & 50–950 ramp

primary
#40094A
secondary
#368727
accent
#F53351
background
#F7F4F7
surface
#EDE7EE
border
#C8C3C9
text
#090209
muted
#7B787B

Preview Lab

Preview with #40094A

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

Preview Lab → · Contrast checker → · Palette generator →

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