#401B6B#401B6B

#401B6B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.131 H 300.2°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#401B6B
RGBrgb(64, 27, 107)
HSLhsl(268, 60%, 26%)
HSVhsv(268, 75%, 42%)
CMYKcmyk(40.2%, 74.8%, 0%, 58%)
CIE-LABlab(19.78, 35.08, -39.73)
CIE-LCHlch(19.78, 53.00, 311.44°)
OKLaboklab(32.41% 0.0661 -0.1133)
OKLCHoklch(32.41% 0.131 300.2)
XYZxyz(5.1595, 2.9353, 14.2018)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B6B #466B1B
analogous
#1B1E6B #401B6B #681B6B
triadic
#401B6B #6B401B #1B6B40
tetradic
#401B6B #6B1B1E #466B1B #1B6B68
square
#401B6B #6B1B1E #466B1B #1B6B68
split-complementary
#401B6B #6B681B #1E6B1B
monochromatic
#0F0618 #230F3A #401B6B #5D279C #7B35CC

Accessibility & contrast

On white

13.23
#401B6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#401B6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B6B
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B6B#FFFFFF#000000##FFFFFF
##401B6B1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002F69
Tritanopia (blue-blind)
#362F41
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401b6b;
/* rgb */ color: rgb(64, 27, 107);
/* oklch */ color: oklch(32.4% 0.131 300.2);
Tailwind
colors: {
  custom: {
    50: '#795b96',
    500: '#401b6b',
    950: '#000000',
  },
}
SCSS
$custom: #401b6b;
$custom-light: #795b96;
$custom-dark: #000000;
JSON
{
  "hex": "#401b6b",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 107
  },
  "hsl": {
    "h": 267.75,
    "s": 59.701,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32406,
    "c": 0.13118,
    "h": 300.2
  },
  "luminance": 0.02935
}

Semantic roles & 50–950 ramp

primary
#401B6B
secondary
#74A042
accent
#E3459A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401B6B

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

Preview Lab → · Contrast checker → · Palette generator →

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