#401F72#401F72

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

Color values

HEX#401F72
RGBrgb(64, 31, 114)
HSLhsl(264, 57%, 28%)
HSVhsv(264, 73%, 45%)
CMYKcmyk(43.9%, 72.8%, 0%, 55.3%)
CIE-LABlab(21.15, 34.90, -42.04)
CIE-LCHlch(21.15, 54.64, 309.70°)
OKLaboklab(33.57% 0.0603 -0.1201)
OKLCHoklch(33.57% 0.134 296.7)
XYZxyz(5.6408, 3.2848, 16.2532)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F72 #51721F
analogous
#1F2872 #401F72 #691F72
triadic
#401F72 #72401F #1F7240
tetradic
#401F72 #721F28 #51721F #1F7269
square
#401F72 #721F28 #51721F #1F7269
split-complementary
#401F72 #72691F #28721F
monochromatic
#0E0718 #251242 #401F72 #5B2CA2 #7740CB

Accessibility & contrast

On white

12.67
#401F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401F72
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F72#FFFFFF#000000##FFFFFF
##401F721.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003374
Deuteranopia (green-blind)
#003270
Tritanopia (blue-blind)
#333346
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401f72;
/* rgb */ color: rgb(64, 31, 114);
/* oklch */ color: oklch(33.6% 0.134 296.7);
Tailwind
colors: {
  custom: {
    50: '#7a5d9b',
    500: '#401f72',
    950: '#000000',
  },
}
SCSS
$custom: #401f72;
$custom-light: #7a5d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#401f72",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 263.855,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33567,
    "c": 0.13444,
    "h": 296.7
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#401F72
secondary
#80A647
accent
#E047A4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401F72

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

Preview Lab → · Contrast checker → · Palette generator →

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