#401B71#401B71

#401B71 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 32.9% C 0.138 H 297.9°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#401B71
RGBrgb(64, 27, 113)
HSLhsl(266, 61%, 27%)
HSVhsv(266, 76%, 44%)
CMYKcmyk(43.4%, 76.1%, 0%, 55.7%)
CIE-LABlab(20.31, 36.74, -42.77)
CIE-LCHlch(20.31, 56.38, 310.66°)
OKLaboklab(32.94% 0.0648 -0.1223)
OKLCHoklch(32.94% 0.138 297.9)
XYZxyz(5.4862, 3.0660, 15.9223)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B71 #4C711B
analogous
#1B2171 #401B71 #6B1B71
triadic
#401B71 #71401B #1B7140
tetradic
#401B71 #711B21 #4C711B #1B716B
square
#401B71 #711B21 #4C711B #1B716B
split-complementary
#401B71 #716B1B #21711B
monochromatic
#0E0619 #240F40 #401B71 #5C27A2 #7937CF

Accessibility & contrast

On white

13.02
#401B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B71
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B71#FFFFFF#000000##FFFFFF
##401B711.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#343144
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401b71;
/* rgb */ color: rgb(64, 27, 113);
/* oklch */ color: oklch(32.9% 0.138 297.9);
Tailwind
colors: {
  custom: {
    50: '#7a5b9b',
    500: '#401b71',
    950: '#000000',
  },
}
SCSS
$custom: #401b71;
$custom-light: #7a5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#401b71",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 265.814,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3294,
    "c": 0.13836,
    "h": 297.9
  },
  "luminance": 0.03066
}

Semantic roles & 50–950 ramp

primary
#401B71
secondary
#7BA642
accent
#E5439F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401B71

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

Preview Lab → · Contrast checker → · Palette generator →

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