#40134C#40134C

#40134C is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.9% C 0.107 H 318.4°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#40134C
RGBrgb(64, 19, 76)
HSLhsl(287, 60%, 19%)
HSVhsv(287, 75%, 30%)
CMYKcmyk(15.8%, 75%, 0%, 70.2%)
CIE-LABlab(15.89, 31.26, -25.31)
CIE-LCHlch(15.89, 40.22, 321.00°)
OKLaboklab(28.85% 0.0799 -0.0709)
OKLCHoklch(28.85% 0.107 318.4)
XYZxyz(3.6516, 2.0777, 7.0448)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40134C #1F4C13
analogous
#23134C #40134C #4C133B
triadic
#40134C #4C4013 #134C40
tetradic
#40134C #4C2313 #1F4C13 #133B4C
square
#40134C #4C2313 #1F4C13 #133B4C
split-complementary
#40134C #3B4C13 #134C23
monochromatic
#150618 #17071B #40134C #691F7D #922BAE

Accessibility & contrast

On white

14.83
#40134C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#40134C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40134C
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40134C#FFFFFF#000000##FFFFFF
##40134C1.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254E
Deuteranopia (green-blind)
#16294B
Tritanopia (blue-blind)
#401E2D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40134c;
/* rgb */ color: rgb(64, 19, 76);
/* oklch */ color: oklch(28.9% 0.107 318.4);
Tailwind
colors: {
  custom: {
    50: '#77557e',
    500: '#40134c',
    950: '#000000',
  },
}
SCSS
$custom: #40134c;
$custom-light: #77557e;
$custom-dark: #000000;
JSON
{
  "hex": "#40134c",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 76
  },
  "hsl": {
    "h": 287.368,
    "s": 60,
    "l": 18.627
  },
  "oklch": {
    "l": 0.28854,
    "c": 0.10686,
    "h": 318.4
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#40134C
secondary
#478536
accent
#E34566
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40134C

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

Preview Lab → · Contrast checker → · Palette generator →

#40134C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva