#401D75#401D75

#401D75 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.141 H 296.1°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#401D75
RGBrgb(64, 29, 117)
HSLhsl(264, 60%, 29%)
HSVhsv(264, 75%, 46%)
CMYKcmyk(45.3%, 75.2%, 0%, 54.1%)
CIE-LABlab(21.03, 36.83, -44.17)
CIE-LCHlch(21.03, 57.51, 309.82°)
OKLaboklab(33.56% 0.0618 -0.1264)
OKLCHoklch(33.56% 0.141 296.1)
XYZxyz(5.7638, 3.2529, 17.1504)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D75 #52751D
analogous
#1D2675 #401D75 #6C1D75
triadic
#401D75 #75401D #1D7540
tetradic
#401D75 #751D26 #52751D #1D756C
square
#401D75 #751D26 #52751D #1D756C
split-complementary
#401D75 #756C1D #26751D
monochromatic
#0D0619 #251144 #401D75 #5B29A6 #773DCF

Accessibility & contrast

On white

12.72
#401D75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#401D75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D75
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D75#FFFFFF#000000##FFFFFF
##401D751.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003378
Deuteranopia (green-blind)
#003173
Tritanopia (blue-blind)
#323347
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401d75;
/* rgb */ color: rgb(64, 29, 117);
/* oklch */ color: oklch(33.6% 0.141 296.1);
Tailwind
colors: {
  custom: {
    50: '#7a5c9e',
    500: '#401d75',
    950: '#000000',
  },
}
SCSS
$custom: #401d75;
$custom-light: #7a5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401d75",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 117
  },
  "hsl": {
    "h": 263.864,
    "s": 60.274,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33563,
    "c": 0.14068,
    "h": 296.1
  },
  "luminance": 0.03253
}

Semantic roles & 50–950 ramp

primary
#401D75
secondary
#81A945
accent
#E344A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401D75

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

Preview Lab → · Contrast checker → · Palette generator →

#401D75 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva