#401F75#401F75

#401F75 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 33.8% C 0.138 H 295.6°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#401F75
RGBrgb(64, 31, 117)
HSLhsl(263, 58%, 29%)
HSVhsv(263, 74%, 46%)
CMYKcmyk(45.3%, 73.5%, 0%, 54.1%)
CIE-LABlab(21.41, 35.76, -43.55)
CIE-LCHlch(21.41, 56.35, 309.39°)
OKLaboklab(33.83% 0.0597 -0.1246)
OKLCHoklch(33.83% 0.138 295.6)
XYZxyz(5.8144, 3.3542, 17.1673)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401F75 #54751F
analogous
#1F2975 #401F75 #6B1F75
triadic
#401F75 #75401F #1F7540
tetradic
#401F75 #751F29 #54751F #1F756B
square
#401F75 #751F29 #54751F #1F756B
split-complementary
#401F75 #756B1F #29751F
monochromatic
#0D0618 #261245 #401F75 #5A2CA5 #7742CD

Accessibility & contrast

On white

12.57
#401F75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#401F75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401F75
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401F75#FFFFFF#000000##FFFFFF
##401F751.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#003273
Tritanopia (blue-blind)
#323547
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #401f75;
/* rgb */ color: rgb(64, 31, 117);
/* oklch */ color: oklch(33.8% 0.138 295.6);
Tailwind
colors: {
  custom: {
    50: '#7a5e9d',
    500: '#401f75',
    950: '#000000',
  },
}
SCSS
$custom: #401f75;
$custom-light: #7a5e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#401f75",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 117
  },
  "hsl": {
    "h": 263.023,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33833,
    "c": 0.13815,
    "h": 295.6
  },
  "luminance": 0.03354
}

Semantic roles & 50–950 ramp

primary
#401F75
secondary
#83A947
accent
#E146A6
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401F75

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

Preview Lab → · Contrast checker → · Palette generator →

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