#40104F#40104F

#40104F is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.7% C 0.114 H 316.8°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#40104F
RGBrgb(64, 16, 79)
HSLhsl(286, 66%, 19%)
HSVhsv(286, 80%, 31%)
CMYKcmyk(19%, 79.7%, 0%, 69%)
CIE-LABlab(15.62, 33.33, -27.80)
CIE-LCHlch(15.62, 43.40, 320.17°)
OKLaboklab(28.73% 0.0833 -0.0782)
OKLCHoklch(28.73% 0.114 316.8)
XYZxyz(3.7107, 2.0252, 7.5911)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40104F #1F4F10
analogous
#20104F #40104F #4F103E
triadic
#40104F #4F4010 #104F40
tetradic
#40104F #4F2010 #1F4F10 #103E4F
square
#40104F #4F2010 #1F4F10 #103E4F
split-complementary
#40104F #3E4F10 #104F20
monochromatic
#150519 #17061C #40104F #691A82 #9225B5

Accessibility & contrast

On white

14.95
#40104F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#40104F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40104F
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40104F#FFFFFF#000000##FFFFFF
##40104F1.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#11284E
Tritanopia (blue-blind)
#3F1D2E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40104f;
/* rgb */ color: rgb(64, 16, 79);
/* oklch */ color: oklch(28.7% 0.114 316.8);
Tailwind
colors: {
  custom: {
    50: '#775481',
    500: '#40104f',
    950: '#000000',
  },
}
SCSS
$custom: #40104f;
$custom-light: #775481;
$custom-dark: #000000;
JSON
{
  "hex": "#40104f",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 79
  },
  "hsl": {
    "h": 285.714,
    "s": 66.316,
    "l": 18.627
  },
  "oklch": {
    "l": 0.28731,
    "c": 0.11422,
    "h": 316.8
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#40104F
secondary
#478932
accent
#E93F67
background
#F7F5F7
surface
#EDE8EE
border
#C8C4C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40104F

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

Preview Lab → · Contrast checker → · Palette generator →

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