#40113C#40113C

#40113C is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.094 H 331.3°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#40113C
RGBrgb(64, 17, 60)
HSLhsl(305, 58%, 16%)
HSVhsv(305, 73%, 25%)
CMYKcmyk(0%, 73.4%, 6.2%, 74.9%)
CIE-LABlab(14.50, 28.81, -16.36)
CIE-LCHlch(14.50, 33.13, 330.41°)
OKLaboklab(27.51% 0.0822 -0.0449)
OKLCHoklch(27.51% 0.094 331.3)
XYZxyz(3.1304, 1.8174, 4.4600)
Luminance0.0182 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40113C #114015
analogous
#2C1140 #40113C #401124
triadic
#40113C #3C4011 #113C40
tetradic
#40113C #402C11 #114015 #112440
square
#40113C #402C11 #114015 #112440
split-complementary
#40113C #244011 #11402C
monochromatic
#180617 #180617 #40113C #701E69 #A12B97

Accessibility & contrast

On white

15.40
#40113C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#40113C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40113C
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40113C#FFFFFF#000000##FFFFFF
##40113C1.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E203D
Deuteranopia (green-blind)
#1F273B
Tritanopia (blue-blind)
#431624
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40113c;
/* rgb */ color: rgb(64, 17, 60);
/* oklch */ color: oklch(27.5% 0.094 331.3);
Tailwind
colors: {
  custom: {
    50: '#775372',
    500: '#40113c',
    950: '#000000',
  },
}
SCSS
$custom: #40113c;
$custom-light: #775372;
$custom-dark: #000000;
JSON
{
  "hex": "#40113c",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 60
  },
  "hsl": {
    "h": 305.106,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27512,
    "c": 0.09367,
    "h": 331.3
  },
  "luminance": 0.01817
}

Semantic roles & 50–950 ramp

primary
#40113C
secondary
#337939
accent
#E15447
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090308
muted
#7B787B

Preview Lab

Preview with #40113C

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

Preview Lab → · Contrast checker → · Palette generator →

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