#401BA0#401BA0

#401BA0 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.193 H 285.1°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#401BA0
RGBrgb(64, 27, 160)
HSLhsl(257, 71%, 37%)
HSVhsv(257, 83%, 63%)
CMYKcmyk(60%, 83.1%, 0%, 37.3%)
CIE-LABlab(24.99, 49.95, -64.53)
CIE-LCHlch(24.99, 81.61, 307.74°)
OKLaboklab(37.62% 0.0502 -0.186)
OKLCHoklch(37.62% 0.193 285.1)
XYZxyz(8.8495, 4.4114, 33.6360)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401BA0 #7BA01B
analogous
#1B38A0 #401BA0 #831BA0
triadic
#401BA0 #A0401B #1BA040
tetradic
#401BA0 #A01B38 #7BA01B #1BA083
square
#401BA0 #A01B38 #7BA01B #1BA083
split-complementary
#401BA0 #A0831B #38A01B
monochromatic
#160937 #2B126C #401BA0 #5524D4 #7B53E2

Accessibility & contrast

On white

11.16
#401BA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401BA0
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401BA0#FFFFFF#000000##FFFFFF
##401BA01.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00379E
Tritanopia (blue-blind)
#02445F
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #401ba0;
/* rgb */ color: rgb(64, 27, 160);
/* oklch */ color: oklch(37.6% 0.193 285.1);
Tailwind
colors: {
  custom: {
    50: '#825ebd',
    500: '#401ba0',
    950: '#000000',
  },
}
SCSS
$custom: #401ba0;
$custom-light: #825ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#401ba0",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 160
  },
  "hsl": {
    "h": 256.692,
    "s": 71.123,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.19262,
    "h": 285.1
  },
  "luminance": 0.04412
}

Semantic roles & 50–950 ramp

primary
#401BA0
secondary
#A5C552
accent
#EE3ABC
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0512
muted
#7D7981

Preview Lab

Preview with #401BA0

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

Preview Lab → · Contrast checker → · Palette generator →

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