#401F73#401F73

#401F73 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.136 H 296.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#401F73
RGBrgb(64, 31, 115)
HSLhsl(264, 58%, 29%)
HSVhsv(264, 73%, 45%)
CMYKcmyk(44.3%, 73%, 0%, 54.9%)
CIE-LABlab(21.24, 35.19, -42.55)
CIE-LCHlch(21.24, 55.21, 309.59°)
OKLaboklab(33.66% 0.0601 -0.1216)
OKLCHoklch(33.66% 0.136 296.3)
XYZxyz(5.6980, 3.3076, 16.5546)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F73 #52731F
analogous
#1F2873 #401F73 #6A1F73
triadic
#401F73 #73401F #1F7340
tetradic
#401F73 #731F28 #52731F #1F736A
square
#401F73 #731F28 #52731F #1F736A
split-complementary
#401F73 #736A1F #28731F
monochromatic
#0D0618 #251243 #401F73 #5B2CA3 #7741CC

Accessibility & contrast

On white

12.64
#401F73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#401F73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F73
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F73#FFFFFF#000000##FFFFFF
##401F731.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003375
Deuteranopia (green-blind)
#003271
Tritanopia (blue-blind)
#333446
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401f73;
/* rgb */ color: rgb(64, 31, 115);
/* oklch */ color: oklch(33.7% 0.136 296.3);
Tailwind
colors: {
  custom: {
    50: '#7a5d9c',
    500: '#401f73',
    950: '#000000',
  },
}
SCSS
$custom: #401f73;
$custom-light: #7a5d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#401f73",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 115
  },
  "hsl": {
    "h": 263.571,
    "s": 57.534,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33655,
    "c": 0.13568,
    "h": 296.3
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#401F73
secondary
#81A747
accent
#E147A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401F73

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

Preview Lab → · Contrast checker → · Palette generator →

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