#401B5A#401B5A

#401B5A is a dark, moderate violet. Relative luminance 0.026; OKLCH L 31.0% C 0.111 H 308.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#401B5A
RGBrgb(64, 27, 90)
HSLhsl(275, 54%, 23%)
HSVhsv(275, 70%, 35%)
CMYKcmyk(28.9%, 70%, 0%, 64.7%)
CIE-LABlab(18.42, 30.51, -30.73)
CIE-LCHlch(18.42, 43.31, 314.80°)
OKLaboklab(31% 0.0685 -0.0869)
OKLCHoklch(31% 0.111 308.2)
XYZxyz(4.3514, 2.6121, 9.9458)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B5A #355A1B
analogous
#201B5A #401B5A #5A1B54
triadic
#401B5A #5A401B #1B5A40
tetradic
#401B5A #5A201B #355A1B #1B545A
square
#401B5A #5A201B #355A1B #1B545A
split-complementary
#401B5A #545A1B #1B5A20
monochromatic
#110718 #1F0D2B #401B5A #612989 #8337B8

Accessibility & contrast

On white

13.79
#401B5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#401B5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B5A
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B5A#FFFFFF#000000##FFFFFF
##401B5A1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#0F2D59
Tritanopia (blue-blind)
#3C2838
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401b5a;
/* rgb */ color: rgb(64, 27, 90);
/* oklch */ color: oklch(31.0% 0.111 308.2);
Tailwind
colors: {
  custom: {
    50: '#775a89',
    500: '#401b5a',
    950: '#000000',
  },
}
SCSS
$custom: #401b5a;
$custom-light: #775a89;
$custom-dark: #000000;
JSON
{
  "hex": "#401b5a",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 90
  },
  "hsl": {
    "h": 275.238,
    "s": 53.846,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30999,
    "c": 0.11062,
    "h": 308.2
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#401B5A
secondary
#629041
accent
#DD4B87
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401B5A

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

Preview Lab → · Contrast checker → · Palette generator →

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