#40114B#40114B

#40114B is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.5% C 0.109 H 319.4°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#40114B
RGBrgb(64, 17, 75)
HSLhsl(289, 63%, 18%)
HSVhsv(289, 77%, 29%)
CMYKcmyk(14.7%, 77.3%, 0%, 70.6%)
CIE-LABlab(15.48, 31.98, -25.27)
CIE-LCHlch(15.48, 40.76, 321.68°)
OKLaboklab(28.54% 0.0825 -0.0708)
OKLCHoklch(28.54% 0.109 319.4)
XYZxyz(3.5846, 1.9991, 6.8523)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40114B #1C4B11
analogous
#23114B #40114B #4B1139
triadic
#40114B #4B4011 #114B40
tetradic
#40114B #4B2311 #1C4B11 #11394B
square
#40114B #4B2311 #1C4B11 #11394B
split-complementary
#40114B #394B11 #114B23
monochromatic
#150619 #150619 #40114B #6B1C7D #9528AF

Accessibility & contrast

On white

15.00
#40114B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#40114B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40114B
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40114B#FFFFFF#000000##FFFFFF
##40114B1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244D
Deuteranopia (green-blind)
#15284A
Tritanopia (blue-blind)
#401C2C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40114b;
/* rgb */ color: rgb(64, 17, 75);
/* oklch */ color: oklch(28.5% 0.109 319.4);
Tailwind
colors: {
  custom: {
    50: '#77547e',
    500: '#40114b',
    950: '#000000',
  },
}
SCSS
$custom: #40114b;
$custom-light: #77547e;
$custom-dark: #000000;
JSON
{
  "hex": "#40114b",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 75
  },
  "hsl": {
    "h": 288.621,
    "s": 63.043,
    "l": 18.039
  },
  "oklch": {
    "l": 0.28539,
    "c": 0.1087,
    "h": 319.4
  },
  "luminance": 0.01999
}

Semantic roles & 50–950 ramp

primary
#40114B
secondary
#438433
accent
#E64261
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40114B

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

Preview Lab → · Contrast checker → · Palette generator →

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