#40113F#40113F

#40113F is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.7% C 0.097 H 328.7°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#40113F
RGBrgb(64, 17, 63)
HSLhsl(301, 58%, 16%)
HSVhsv(301, 73%, 25%)
CMYKcmyk(0%, 73.4%, 1.6%, 74.9%)
CIE-LABlab(14.68, 29.41, -18.19)
CIE-LCHlch(14.68, 34.59, 328.26°)
OKLaboklab(27.7% 0.0825 -0.0502)
OKLCHoklch(27.7% 0.097 328.7)
XYZxyz(3.2120, 1.8500, 4.8896)
Luminance0.0185 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40113F #114012
analogous
#291140 #40113F #401127
triadic
#40113F #3F4011 #113F40
tetradic
#40113F #402911 #114012 #112740
square
#40113F #402911 #114012 #112740
split-complementary
#40113F #274011 #114029
monochromatic
#180618 #180618 #40113F #701E6F #A12B9E

Accessibility & contrast

On white

15.33
#40113F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40113F
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40113F#FFFFFF#000000##FFFFFF
##40113F1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2140
Deuteranopia (green-blind)
#1D273E
Tritanopia (blue-blind)
#421726
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40113f;
/* rgb */ color: rgb(64, 17, 63);
/* oklch */ color: oklch(27.7% 0.097 328.7);
Tailwind
colors: {
  custom: {
    50: '#775374',
    500: '#40113f',
    950: '#000000',
  },
}
SCSS
$custom: #40113f;
$custom-light: #775374;
$custom-dark: #000000;
JSON
{
  "hex": "#40113f",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 63
  },
  "hsl": {
    "h": 301.277,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27702,
    "c": 0.09655,
    "h": 328.7
  },
  "luminance": 0.0185
}

Semantic roles & 50–950 ramp

primary
#40113F
secondary
#337935
accent
#E14A47
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40113F

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

Preview Lab → · Contrast checker → · Palette generator →

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