#40134B#40134B

#40134B is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.8% C 0.106 H 319.1°. Best body text is #FFFFFF at 14.86:1 contrast (WCAG AA passes).

Color values

HEX#40134B
RGBrgb(64, 19, 75)
HSLhsl(288, 60%, 18%)
HSVhsv(288, 75%, 29%)
CMYKcmyk(14.7%, 74.7%, 0%, 70.6%)
CIE-LABlab(15.82, 31.03, -24.73)
CIE-LCHlch(15.82, 39.68, 321.44°)
OKLaboklab(28.78% 0.08 -0.0693)
OKLCHoklch(28.78% 0.106 319.1)
XYZxyz(3.6171, 2.0639, 6.8631)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40134B #1E4B13
analogous
#24134B #40134B #4B133A
triadic
#40134B #4B4013 #134B40
tetradic
#40134B #4B2413 #1E4B13 #133A4B
square
#40134B #4B2413 #1E4B13 #133A4B
split-complementary
#40134B #3A4B13 #134B24
monochromatic
#150618 #16071A #40134B #6A1F7C #932CAD

Accessibility & contrast

On white

14.86
#40134B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#40134B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40134B
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40134B#FFFFFF#000000##FFFFFF
##40134B1.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01244D
Deuteranopia (green-blind)
#17294A
Tritanopia (blue-blind)
#401D2D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40134b;
/* rgb */ color: rgb(64, 19, 75);
/* oklch */ color: oklch(28.8% 0.106 319.1);
Tailwind
colors: {
  custom: {
    50: '#77557d',
    500: '#40134b',
    950: '#000000',
  },
}
SCSS
$custom: #40134b;
$custom-light: #77557d;
$custom-dark: #000000;
JSON
{
  "hex": "#40134b",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 75
  },
  "hsl": {
    "h": 288.214,
    "s": 59.574,
    "l": 18.431
  },
  "oklch": {
    "l": 0.2878,
    "c": 0.10578,
    "h": 319.1
  },
  "luminance": 0.02064
}

Semantic roles & 50–950 ramp

primary
#40134B
secondary
#458436
accent
#E34564
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40134B

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

Preview Lab → · Contrast checker → · Palette generator →

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