#40163D#40163D

#40163D is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.3% C 0.086 H 330.4°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#40163D
RGBrgb(64, 22, 61)
HSLhsl(304, 49%, 17%)
HSVhsv(304, 66%, 25%)
CMYKcmyk(0%, 65.6%, 4.7%, 74.9%)
CIE-LABlab(15.49, 26.44, -15.51)
CIE-LCHlch(15.49, 30.65, 329.60°)
OKLaboklab(28.26% 0.0749 -0.0425)
OKLCHoklch(28.26% 0.086 330.4)
XYZxyz(3.2435, 2.0009, 4.6294)
Luminance0.0200 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40163D #164019
analogous
#2E1640 #40163D #401628
triadic
#40163D #3D4016 #163D40
tetradic
#40163D #402E16 #164019 #162840
square
#40163D #402E16 #164019 #162840
split-complementary
#40163D #284016 #16402E
monochromatic
#170816 #170816 #40163D #6E2668 #9B3594

Accessibility & contrast

On white

15.00
#40163D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40163D
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40163D#FFFFFF#000000##FFFFFF
##40163D1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#13233E
Deuteranopia (green-blind)
#21293C
Tritanopia (blue-blind)
#431A27
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40163d;
/* rgb */ color: rgb(64, 22, 61);
/* oklch */ color: oklch(28.3% 0.086 330.4);
Tailwind
colors: {
  custom: {
    50: '#765672',
    500: '#40163d',
    950: '#000000',
  },
}
SCSS
$custom: #40163d;
$custom-light: #765672;
$custom-dark: #000000;
JSON
{
  "hex": "#40163d",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 61
  },
  "hsl": {
    "h": 304.286,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28256,
    "c": 0.08614,
    "h": 330.4
  },
  "luminance": 0.02001
}

Semantic roles & 50–950 ramp

primary
#40163D
secondary
#3B773F
accent
#D8594F
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090308
muted
#7B787B

Preview Lab

Preview with #40163D

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

Preview Lab → · Contrast checker → · Palette generator →

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