#401B53#401B53

#401B53 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.102 H 312.4°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#401B53
RGBrgb(64, 27, 83)
HSLhsl(280, 51%, 22%)
HSVhsv(280, 67%, 33%)
CMYKcmyk(22.9%, 67.5%, 0%, 67.5%)
CIE-LABlab(17.91, 28.72, -26.84)
CIE-LCHlch(17.91, 39.31, 316.93°)
OKLaboklab(30.47% 0.0688 -0.0755)
OKLCHoklch(30.47% 0.102 312.4)
XYZxyz(4.0673, 2.4985, 8.4499)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B53 #2E531B
analogous
#241B53 #401B53 #531B4A
triadic
#401B53 #53401B #1B5340
tetradic
#401B53 #53241B #2E531B #1B4A53
square
#401B53 #53241B #2E531B #1B4A53
split-complementary
#401B53 #4A531B #1B5324
monochromatic
#120817 #1C0C25 #401B53 #642A81 #8739AF

Accessibility & contrast

On white

14.00
#401B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#401B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B53
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B53#FFFFFF#000000##FFFFFF
##401B531.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052A55
Deuteranopia (green-blind)
#172D52
Tritanopia (blue-blind)
#3E2634
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401b53;
/* rgb */ color: rgb(64, 27, 83);
/* oklch */ color: oklch(30.5% 0.102 312.4);
Tailwind
colors: {
  custom: {
    50: '#775a84',
    500: '#401b53',
    950: '#000000',
  },
}
SCSS
$custom: #401b53;
$custom-light: #775a84;
$custom-dark: #000000;
JSON
{
  "hex": "#401b53",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 279.643,
    "s": 50.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.3047,
    "c": 0.10214,
    "h": 312.4
  },
  "luminance": 0.02498
}

Semantic roles & 50–950 ramp

primary
#401B53
secondary
#598941
accent
#DA4D7D
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401B53

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

Preview Lab → · Contrast checker → · Palette generator →

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