#40113B#40113B

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

Color values

HEX#40113B
RGBrgb(64, 17, 59)
HSLhsl(306, 58%, 16%)
HSVhsv(306, 73%, 25%)
CMYKcmyk(0%, 73.4%, 7.8%, 74.9%)
CIE-LABlab(14.44, 28.62, -15.74)
CIE-LCHlch(14.44, 32.66, 331.19°)
OKLaboklab(27.45% 0.0821 -0.0431)
OKLCHoklch(27.45% 0.093 332.3)
XYZxyz(3.1042, 1.8069, 4.3221)
Luminance0.0181 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40113B #114016
analogous
#2D1140 #40113B #401123
triadic
#40113B #3B4011 #113B40
tetradic
#40113B #402D11 #114016 #112340
square
#40113B #402D11 #114016 #112340
split-complementary
#40113B #234011 #11402D
monochromatic
#180616 #180616 #40113B #701E68 #A12B94

Accessibility & contrast

On white

15.43
#40113B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40113B
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40113B#FFFFFF#000000##FFFFFF
##40113B1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F203C
Deuteranopia (green-blind)
#1F273A
Tritanopia (blue-blind)
#431524
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #40113b;
/* rgb */ color: rgb(64, 17, 59);
/* oklch */ color: oklch(27.5% 0.093 332.3);
Tailwind
colors: {
  custom: {
    50: '#775371',
    500: '#40113b',
    950: '#000000',
  },
}
SCSS
$custom: #40113b;
$custom-light: #775371;
$custom-dark: #000000;
JSON
{
  "hex": "#40113b",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 59
  },
  "hsl": {
    "h": 306.383,
    "s": 58.025,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2745,
    "c": 0.09273,
    "h": 332.3
  },
  "luminance": 0.01807
}

Semantic roles & 50–950 ramp

primary
#40113B
secondary
#33793B
accent
#E15747
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40113B

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

Preview Lab → · Contrast checker → · Palette generator →

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