#40113D#40113D

#40113D is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.6% C 0.095 H 330.4°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#40113D
RGBrgb(64, 17, 61)
HSLhsl(304, 58%, 16%)
HSVhsv(304, 73%, 25%)
CMYKcmyk(0%, 73.4%, 4.7%, 74.9%)
CIE-LABlab(14.56, 29.01, -16.97)
CIE-LCHlch(14.56, 33.61, 329.67°)
OKLaboklab(27.58% 0.0823 -0.0467)
OKLCHoklch(27.58% 0.095 330.4)
XYZxyz(3.1571, 1.8280, 4.6005)
Luminance0.0183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40113D #114014
analogous
#2B1140 #40113D #401125
triadic
#40113D #3D4011 #113D40
tetradic
#40113D #402B11 #114014 #112540
square
#40113D #402B11 #114014 #112540
split-complementary
#40113D #254011 #11402B
monochromatic
#180617 #180617 #40113D #701E6B #A12B99

Accessibility & contrast

On white

15.38
#40113D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#40113D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40113D
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40113D#FFFFFF#000000##FFFFFF
##40113D1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D213E
Deuteranopia (green-blind)
#1E273C
Tritanopia (blue-blind)
#431625
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40113d;
/* rgb */ color: rgb(64, 17, 61);
/* oklch */ color: oklch(27.6% 0.095 330.4);
Tailwind
colors: {
  custom: {
    50: '#775372',
    500: '#40113d',
    950: '#000000',
  },
}
SCSS
$custom: #40113d;
$custom-light: #775372;
$custom-dark: #000000;
JSON
{
  "hex": "#40113d",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 61
  },
  "hsl": {
    "h": 303.83,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27575,
    "c": 0.09462,
    "h": 330.4
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#40113D
secondary
#337938
accent
#E15047
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090308
muted
#7B787B

Preview Lab

Preview with #40113D

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

Preview Lab → · Contrast checker → · Palette generator →

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