#40193F#40193F

#40193F is a dark, moderate purple. Relative luminance 0.021; OKLCH L 28.8% C 0.083 H 328.4°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#40193F
RGBrgb(64, 25, 63)
HSLhsl(302, 44%, 17%)
HSVhsv(302, 61%, 25%)
CMYKcmyk(0%, 60.9%, 1.6%, 74.9%)
CIE-LABlab(16.23, 25.17, -15.76)
CIE-LCHlch(16.23, 29.70, 327.95°)
OKLaboklab(28.83% 0.0705 -0.0433)
OKLCHoklch(28.83% 0.083 328.4)
XYZxyz(3.3591, 2.1443, 4.9386)
Luminance0.0214 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40193F #19401A
analogous
#2D1940 #40193F #40192C
triadic
#40193F #3F4019 #193F40
tetradic
#40193F #402D19 #19401A #192C40
square
#40193F #402D19 #19401A #192C40
split-complementary
#40193F #2C4019 #19402D
monochromatic
#160916 #160916 #40193F #6C2A6A #983B96

Accessibility & contrast

On white

14.70
#40193F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#40193F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40193F
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40193F#FFFFFF#000000##FFFFFF
##40193F1.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#162540
Deuteranopia (green-blind)
#222A3E
Tritanopia (blue-blind)
#421D29
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40193f;
/* rgb */ color: rgb(64, 25, 63);
/* oklch */ color: oklch(28.8% 0.083 328.4);
Tailwind
colors: {
  custom: {
    50: '#765874',
    500: '#40193f',
    950: '#000000',
  },
}
SCSS
$custom: #40193f;
$custom-light: #765874;
$custom-dark: #000000;
JSON
{
  "hex": "#40193f",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 63
  },
  "hsl": {
    "h": 301.538,
    "s": 43.82,
    "l": 17.451
  },
  "oklch": {
    "l": 0.28832,
    "c": 0.08268,
    "h": 328.4
  },
  "luminance": 0.02144
}

Semantic roles & 50–950 ramp

primary
#40193F
secondary
#3F7640
accent
#D45854
background
#F7F5F7
surface
#EDE9ED
border
#C8C5C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40193F

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

Preview Lab → · Contrast checker → · Palette generator →

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