#401F76#401F76

#401F76 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.9% C 0.139 H 295.3°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#401F76
RGBrgb(64, 31, 118)
HSLhsl(263, 58%, 29%)
HSVhsv(263, 74%, 46%)
CMYKcmyk(45.8%, 73.7%, 0%, 53.7%)
CIE-LABlab(21.50, 36.05, -44.04)
CIE-LCHlch(21.50, 56.92, 309.30°)
OKLaboklab(33.92% 0.0595 -0.126)
OKLCHoklch(33.92% 0.139 295.3)
XYZxyz(5.8735, 3.3778, 17.4786)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F76 #55761F
analogous
#1F2A76 #401F76 #6C1F76
triadic
#401F76 #76401F #1F7640
tetradic
#401F76 #761F2A #55761F #1F766C
square
#401F76 #761F2A #55761F #1F766C
split-complementary
#401F76 #766C1F #2A761F
monochromatic
#0D0618 #261246 #401F76 #5A2CA6 #7742CD

Accessibility & contrast

On white

12.53
#401F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#401F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F76
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F76#FFFFFF#000000##FFFFFF
##401F761.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003479
Deuteranopia (green-blind)
#003274
Tritanopia (blue-blind)
#313548
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #401f76;
/* rgb */ color: rgb(64, 31, 118);
/* oklch */ color: oklch(33.9% 0.139 295.3);
Tailwind
colors: {
  custom: {
    50: '#7a5e9e',
    500: '#401f76',
    950: '#000000',
  },
}
SCSS
$custom: #401f76;
$custom-light: #7a5e9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401f76",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 262.759,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33922,
    "c": 0.13938,
    "h": 295.3
  },
  "luminance": 0.03378
}

Semantic roles & 50–950 ramp

primary
#401F76
secondary
#84AA47
accent
#E246A7
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401F76

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

Preview Lab → · Contrast checker → · Palette generator →

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