#401D70#401D70

#401D70 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.135 H 297.8°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#401D70
RGBrgb(64, 29, 112)
HSLhsl(265, 59%, 28%)
HSVhsv(265, 74%, 44%)
CMYKcmyk(42.9%, 74.1%, 0%, 56.1%)
CIE-LABlab(20.59, 35.42, -41.66)
CIE-LCHlch(20.59, 54.68, 310.37°)
OKLaboklab(33.11% 0.0629 -0.119)
OKLCHoklch(33.11% 0.135 297.8)
XYZxyz(5.4776, 3.1385, 15.6433)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401D70 #4D701D
analogous
#1D2470 #401D70 #691D70
triadic
#401D70 #70401D #1D7040
tetradic
#401D70 #701D24 #4D701D #1D7069
square
#401D70 #701D24 #4D701D #1D7069
split-complementary
#401D70 #70691D #24701D
monochromatic
#0E0618 #24103F #401D70 #5C2AA1 #783BCC

Accessibility & contrast

On white

12.90
#401D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#401D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401D70
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401D70#FFFFFF#000000##FFFFFF
##401D701.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00316E
Tritanopia (blue-blind)
#343244
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #401d70;
/* rgb */ color: rgb(64, 29, 112);
/* oklch */ color: oklch(33.1% 0.135 297.8);
Tailwind
colors: {
  custom: {
    50: '#7a5c9a',
    500: '#401d70',
    950: '#000000',
  },
}
SCSS
$custom: #401d70;
$custom-light: #7a5c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#401d70",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 265.301,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33114,
    "c": 0.1346,
    "h": 297.8
  },
  "luminance": 0.03139
}

Semantic roles & 50–950 ramp

primary
#401D70
secondary
#7CA444
accent
#E246A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401D70

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

Preview Lab → · Contrast checker → · Palette generator →

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