#401B9F#401B9F

#401B9F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.192 H 285.3°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#401B9F
RGBrgb(64, 27, 159)
HSLhsl(257, 71%, 36%)
HSVhsv(257, 83%, 62%)
CMYKcmyk(59.7%, 83%, 0%, 37.6%)
CIE-LABlab(24.88, 49.67, -64.10)
CIE-LCHlch(24.88, 81.09, 307.77°)
OKLaboklab(37.51% 0.0505 -0.1847)
OKLCHoklch(37.51% 0.192 285.3)
XYZxyz(8.7624, 4.3765, 33.1772)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B9F #7A9F1B
analogous
#1B389F #401B9F #821B9F
triadic
#401B9F #9F401B #1B9F40
tetradic
#401B9F #9F1B38 #7A9F1B #1B9F82
square
#401B9F #9F1B38 #7A9F1B #1B9F82
split-complementary
#401B9F #9F821B #389F1B
monochromatic
#160936 #2B126B #401B9F #5524D3 #7B53E2

Accessibility & contrast

On white

11.20
#401B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#401B9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B9F
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B9F#FFFFFF#000000##FFFFFF
##401B9F1.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00379D
Tritanopia (blue-blind)
#05445F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401b9f;
/* rgb */ color: rgb(64, 27, 159);
/* oklch */ color: oklch(37.5% 0.192 285.3);
Tailwind
colors: {
  custom: {
    50: '#815ebd',
    500: '#401b9f',
    950: '#000000',
  },
}
SCSS
$custom: #401b9f;
$custom-light: #815ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#401b9f",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 256.818,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37512,
    "c": 0.1915,
    "h": 285.3
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#401B9F
secondary
#A4C551
accent
#EE3ABB
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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