#40113E#40113E

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

Color values

HEX#40113E
RGBrgb(64, 17, 62)
HSLhsl(303, 58%, 16%)
HSVhsv(303, 73%, 25%)
CMYKcmyk(0%, 73.4%, 3.1%, 74.9%)
CIE-LABlab(14.62, 29.21, -17.58)
CIE-LCHlch(14.62, 34.10, 328.95°)
OKLaboklab(27.64% 0.0824 -0.0484)
OKLCHoklch(27.64% 0.096 329.5)
XYZxyz(3.1843, 1.8389, 4.7437)
Luminance0.0184 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40113E #114013
analogous
#2A1140 #40113E #401126
triadic
#40113E #3E4011 #113E40
tetradic
#40113E #402A11 #114013 #112640
square
#40113E #402A11 #114013 #112640
split-complementary
#40113E #264011 #11402A
monochromatic
#180617 #180617 #40113E #701E6D #A12B9C

Accessibility & contrast

On white

15.35
#40113E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40113E
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40113E#FFFFFF#000000##FFFFFF
##40113E1.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C213F
Deuteranopia (green-blind)
#1E273D
Tritanopia (blue-blind)
#431725
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40113e;
/* rgb */ color: rgb(64, 17, 62);
/* oklch */ color: oklch(27.6% 0.096 329.5);
Tailwind
colors: {
  custom: {
    50: '#775373',
    500: '#40113e',
    950: '#000000',
  },
}
SCSS
$custom: #40113e;
$custom-light: #775373;
$custom-dark: #000000;
JSON
{
  "hex": "#40113e",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 62
  },
  "hsl": {
    "h": 302.553,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27638,
    "c": 0.09558,
    "h": 329.5
  },
  "luminance": 0.01839
}

Semantic roles & 50–950 ramp

primary
#40113E
secondary
#337936
accent
#E14D47
background
#F7F4F7
surface
#EDE7ED
border
#C8C3C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40113E

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

Preview Lab → · Contrast checker → · Palette generator →

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