#40134D#40134D

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

Color values

HEX#40134D
RGBrgb(64, 19, 77)
HSLhsl(287, 60%, 19%)
HSVhsv(287, 75%, 30%)
CMYKcmyk(16.9%, 75.3%, 0%, 69.8%)
CIE-LABlab(15.96, 31.49, -25.88)
CIE-LCHlch(15.96, 40.76, 320.58°)
OKLaboklab(28.93% 0.0799 -0.0726)
OKLCHoklch(28.93% 0.108 317.7)
XYZxyz(3.6866, 2.0917, 7.2293)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40134D #204D13
analogous
#23134D #40134D #4D133D
triadic
#40134D #4D4013 #134D40
tetradic
#40134D #4D2313 #204D13 #133D4D
square
#40134D #4D2313 #204D13 #133D4D
split-complementary
#40134D #3D4D13 #134D23
monochromatic
#140619 #17071C #40134D #691F7E #922BAF

Accessibility & contrast

On white

14.81
#40134D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40134D
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40134D#FFFFFF#000000##FFFFFF
##40134D1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#15294C
Tritanopia (blue-blind)
#401E2E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40134d;
/* rgb */ color: rgb(64, 19, 77);
/* oklch */ color: oklch(28.9% 0.108 317.7);
Tailwind
colors: {
  custom: {
    50: '#77557f',
    500: '#40134d',
    950: '#000000',
  },
}
SCSS
$custom: #40134d;
$custom-light: #77557f;
$custom-dark: #000000;
JSON
{
  "hex": "#40134d",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 77
  },
  "hsl": {
    "h": 286.552,
    "s": 60.417,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28928,
    "c": 0.10793,
    "h": 317.7
  },
  "luminance": 0.02092
}

Semantic roles & 50–950 ramp

primary
#40134D
secondary
#488636
accent
#E44468
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40134D

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

Preview Lab → · Contrast checker → · Palette generator →

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