#40114F#40114F

#40114F is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.8% C 0.113 H 316.7°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#40114F
RGBrgb(64, 17, 79)
HSLhsl(285, 65%, 19%)
HSVhsv(285, 78%, 31%)
CMYKcmyk(19%, 78.5%, 0%, 69%)
CIE-LABlab(15.78, 32.88, -27.55)
CIE-LCHlch(15.78, 42.90, 320.05°)
OKLaboklab(28.84% 0.0821 -0.0775)
OKLCHoklch(28.84% 0.113 316.7)
XYZxyz(3.7259, 2.0556, 7.5961)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40114F #204F11
analogous
#21114F #40114F #4F113F
triadic
#40114F #4F4011 #114F40
tetradic
#40114F #4F2111 #204F11 #113F4F
square
#40114F #4F2111 #204F11 #113F4F
split-complementary
#40114F #3F4F11 #114F21
monochromatic
#140519 #17061D #40114F #691C81 #9227B4

Accessibility & contrast

On white

14.88
#40114F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40114F
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40114F#FFFFFF#000000##FFFFFF
##40114F1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40114f;
/* rgb */ color: rgb(64, 17, 79);
/* oklch */ color: oklch(28.8% 0.113 316.7);
Tailwind
colors: {
  custom: {
    50: '#775481',
    500: '#40114f',
    950: '#000000',
  },
}
SCSS
$custom: #40114f;
$custom-light: #775481;
$custom-dark: #000000;
JSON
{
  "hex": "#40114f",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 79
  },
  "hsl": {
    "h": 285.484,
    "s": 64.583,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28842,
    "c": 0.11289,
    "h": 316.7
  },
  "luminance": 0.02055
}

Semantic roles & 50–950 ramp

primary
#40114F
secondary
#488833
accent
#E84069
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40114F

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

Preview Lab → · Contrast checker → · Palette generator →

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