#40113A#40113A

#40113A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.4% C 0.092 H 333.2°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#40113A
RGBrgb(64, 17, 58)
HSLhsl(308, 58%, 16%)
HSVhsv(308, 73%, 25%)
CMYKcmyk(0%, 73.4%, 9.4%, 74.9%)
CIE-LABlab(14.38, 28.43, -15.12)
CIE-LCHlch(14.38, 32.20, 331.99°)
OKLaboklab(27.39% 0.082 -0.0414)
OKLCHoklch(27.39% 0.092 333.2)
XYZxyz(3.0785, 1.7966, 4.1868)
Luminance0.0180 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40113A #114017
analogous
#2E1140 #40113A #401122
triadic
#40113A #3A4011 #113A40
tetradic
#40113A #402E11 #114017 #112240
square
#40113A #402E11 #114017 #112240
split-complementary
#40113A #224011 #11402E
monochromatic
#180616 #180616 #40113A #701E66 #A12B92

Accessibility & contrast

On white

15.45
#40113A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40113A
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40113A#FFFFFF#000000##FFFFFF
##40113A1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10203B
Deuteranopia (green-blind)
#1F2739
Tritanopia (blue-blind)
#431523
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40113a;
/* rgb */ color: rgb(64, 17, 58);
/* oklch */ color: oklch(27.4% 0.092 333.2);
Tailwind
colors: {
  custom: {
    50: '#775370',
    500: '#40113a',
    950: '#000000',
  },
}
SCSS
$custom: #40113a;
$custom-light: #775370;
$custom-dark: #000000;
JSON
{
  "hex": "#40113a",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 58
  },
  "hsl": {
    "h": 307.66,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.27389,
    "c": 0.0918,
    "h": 333.2
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#40113A
secondary
#33793C
accent
#E15A47
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40113A

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

Preview Lab → · Contrast checker → · Palette generator →

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