#401749#401749

#401749 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.2% C 0.097 H 320.0°. Best body text is #FFFFFF at 14.62:1 contrast (WCAG AA passes).

Color values

HEX#401749
RGBrgb(64, 23, 73)
HSLhsl(289, 52%, 19%)
HSVhsv(289, 68%, 29%)
CMYKcmyk(12.3%, 68.5%, 0%, 71.4%)
CIE-LABlab(16.42, 28.51, -22.39)
CIE-LCHlch(16.42, 36.26, 321.86°)
OKLaboklab(29.17% 0.0745 -0.0624)
OKLCHoklch(29.17% 0.097 320)
XYZxyz(3.6232, 2.1840, 6.5327)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401749 #204917
analogous
#271749 #401749 #491739
triadic
#401749 #494017 #174940
tetradic
#401749 #492717 #204917 #173949
square
#401749 #492717 #204917 #173949
split-complementary
#401749 #394917 #174927
monochromatic
#140717 #17081A #401749 #692678 #9234A6

Accessibility & contrast

On white

14.62
#401749 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401749 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401749
14.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401749#FFFFFF#000000##FFFFFF
##4017491.0014.621.4414.62
#FFFFFF14.621.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A264B
Deuteranopia (green-blind)
#1B2A48
Tritanopia (blue-blind)
#401F2D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401749;
/* rgb */ color: rgb(64, 23, 73);
/* oklch */ color: oklch(29.2% 0.097 320.0);
Tailwind
colors: {
  custom: {
    50: '#77577c',
    500: '#401749',
    950: '#000000',
  },
}
SCSS
$custom: #401749;
$custom-light: #77577c;
$custom-dark: #000000;
JSON
{
  "hex": "#401749",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 73
  },
  "hsl": {
    "h": 289.2,
    "s": 52.083,
    "l": 18.824
  },
  "oklch": {
    "l": 0.29173,
    "c": 0.09722,
    "h": 320
  },
  "luminance": 0.02184
}

Semantic roles & 50–950 ramp

primary
#401749
secondary
#48803C
accent
#DC4C66
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #401749

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

Preview Lab → · Contrast checker → · Palette generator →

#401749 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva