#401B72#401B72

#401B72 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.140 H 297.5°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#401B72
RGBrgb(64, 27, 114)
HSLhsl(266, 62%, 28%)
HSVhsv(266, 76%, 45%)
CMYKcmyk(43.9%, 76.3%, 0%, 55.3%)
CIE-LABlab(20.40, 37.02, -43.27)
CIE-LCHlch(20.40, 56.94, 310.55°)
OKLaboklab(33.03% 0.0645 -0.1237)
OKLCHoklch(33.03% 0.14 297.5)
XYZxyz(5.5428, 3.0887, 16.2205)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B72 #4D721B
analogous
#1B2272 #401B72 #6B1B72
triadic
#401B72 #72401B #1B7240
tetradic
#401B72 #721B22 #4D721B #1B726B
square
#401B72 #721B22 #4D721B #1B726B
split-complementary
#401B72 #726B1B #22721B
monochromatic
#0E0619 #240F41 #401B72 #5C27A3 #7838D0

Accessibility & contrast

On white

12.98
#401B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#401B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B72
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B72#FFFFFF#000000##FFFFFF
##401B721.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003175
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#333145
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401b72;
/* rgb */ color: rgb(64, 27, 114);
/* oklch */ color: oklch(33.0% 0.140 297.5);
Tailwind
colors: {
  custom: {
    50: '#7a5b9b',
    500: '#401b72',
    950: '#000000',
  },
}
SCSS
$custom: #401b72;
$custom-light: #7a5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#401b72",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 265.517,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33031,
    "c": 0.13955,
    "h": 297.5
  },
  "luminance": 0.03089
}

Semantic roles & 50–950 ramp

primary
#401B72
secondary
#7CA742
accent
#E543A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401B72

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

Preview Lab → · Contrast checker → · Palette generator →

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