#401B70#401B70

#401B70 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.137 H 298.3°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#401B70
RGBrgb(64, 27, 112)
HSLhsl(266, 61%, 27%)
HSVhsv(266, 76%, 44%)
CMYKcmyk(42.9%, 75.9%, 0%, 56.1%)
CIE-LABlab(20.22, 36.46, -42.27)
CIE-LCHlch(20.22, 55.82, 310.78°)
OKLaboklab(32.85% 0.065 -0.1208)
OKLCHoklch(32.85% 0.137 298.3)
XYZxyz(5.4302, 3.0436, 15.6275)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B70 #4B701B
analogous
#1B2070 #401B70 #6B1B70
triadic
#401B70 #70401B #1B7040
tetradic
#401B70 #701B20 #4B701B #1B706B
square
#401B70 #701B20 #4B701B #1B706B
split-complementary
#401B70 #706B1B #20701B
monochromatic
#0E0619 #240F3F #401B70 #5C27A1 #7937CF

Accessibility & contrast

On white

13.05
#401B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B70
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B70#FFFFFF#000000##FFFFFF
##401B701.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00306E
Tritanopia (blue-blind)
#343044
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401b70;
/* rgb */ color: rgb(64, 27, 112);
/* oklch */ color: oklch(32.9% 0.137 298.3);
Tailwind
colors: {
  custom: {
    50: '#7a5b9a',
    500: '#401b70',
    950: '#000000',
  },
}
SCSS
$custom: #401b70;
$custom-light: #7a5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#401b70",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 266.118,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3285,
    "c": 0.13717,
    "h": 298.3
  },
  "luminance": 0.03044
}

Semantic roles & 50–950 ramp

primary
#401B70
secondary
#7AA542
accent
#E4449E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401B70

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

Preview Lab → · Contrast checker → · Palette generator →

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