#40163F#40163F

#40163F is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.4% C 0.088 H 328.5°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#40163F
RGBrgb(64, 22, 63)
HSLhsl(301, 49%, 17%)
HSVhsv(301, 66%, 25%)
CMYKcmyk(0%, 65.6%, 1.6%, 74.9%)
CIE-LABlab(15.61, 26.85, -16.73)
CIE-LCHlch(15.61, 31.64, 328.07°)
OKLaboklab(28.38% 0.0752 -0.046)
OKLCHoklch(28.38% 0.088 328.5)
XYZxyz(3.2984, 2.0229, 4.9184)
Luminance0.0202 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40163F #164017
analogous
#2C1640 #40163F #40162A
triadic
#40163F #3F4016 #163F40
tetradic
#40163F #402C16 #164017 #162A40
square
#40163F #402C16 #164017 #162A40
split-complementary
#40163F #2A4016 #16402C
monochromatic
#170816 #170816 #40163F #6E266C #9B3599

Accessibility & contrast

On white

14.95
#40163F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40163F
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40163F#FFFFFF#000000##FFFFFF
##40163F1.0014.951.4014.95
#FFFFFF14.951.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122340
Deuteranopia (green-blind)
#20293E
Tritanopia (blue-blind)
#421B28
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40163f;
/* rgb */ color: rgb(64, 22, 63);
/* oklch */ color: oklch(28.4% 0.088 328.5);
Tailwind
colors: {
  custom: {
    50: '#765674',
    500: '#40163f',
    950: '#000000',
  },
}
SCSS
$custom: #40163f;
$custom-light: #765674;
$custom-dark: #000000;
JSON
{
  "hex": "#40163f",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 63
  },
  "hsl": {
    "h": 301.429,
    "s": 48.837,
    "l": 16.863
  },
  "oklch": {
    "l": 0.28377,
    "c": 0.08817,
    "h": 328.5
  },
  "luminance": 0.02023
}

Semantic roles & 50–950 ramp

primary
#40163F
secondary
#3B773C
accent
#D8534F
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40163F

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

Preview Lab → · Contrast checker → · Palette generator →

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