#40163B#40163B

#40163B is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.1% C 0.084 H 332.4°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#40163B
RGBrgb(64, 22, 59)
HSLhsl(307, 49%, 17%)
HSVhsv(307, 66%, 25%)
CMYKcmyk(0%, 65.6%, 7.8%, 74.9%)
CIE-LABlab(15.38, 26.03, -14.27)
CIE-LCHlch(15.38, 29.69, 331.27°)
OKLaboklab(28.14% 0.0746 -0.039)
OKLCHoklch(28.14% 0.084 332.4)
XYZxyz(3.1907, 1.9798, 4.3509)
Luminance0.0198 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40163B #16401B
analogous
#301640 #40163B #401626
triadic
#40163B #3B4016 #163B40
tetradic
#40163B #403016 #16401B #162640
square
#40163B #403016 #16401B #162640
split-complementary
#40163B #264016 #164030
monochromatic
#170815 #170815 #40163B #6E2665 #9B358F

Accessibility & contrast

On white

15.04
#40163B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#40163B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40163B
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40163B#FFFFFF#000000##FFFFFF
##40163B1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15233C
Deuteranopia (green-blind)
#22293A
Tritanopia (blue-blind)
#431926
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40163b;
/* rgb */ color: rgb(64, 22, 59);
/* oklch */ color: oklch(28.1% 0.084 332.4);
Tailwind
colors: {
  custom: {
    50: '#765671',
    500: '#40163b',
    950: '#000000',
  },
}
SCSS
$custom: #40163b;
$custom-light: #765671;
$custom-dark: #000000;
JSON
{
  "hex": "#40163b",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 59
  },
  "hsl": {
    "h": 307.143,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28138,
    "c": 0.08415,
    "h": 332.4
  },
  "luminance": 0.0198
}

Semantic roles & 50–950 ramp

primary
#40163B
secondary
#3B7742
accent
#D8604F
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40163B

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

Preview Lab → · Contrast checker → · Palette generator →

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