#401B6E#401B6E

#401B6E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.135 H 299.0°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#401B6E
RGBrgb(64, 27, 110)
HSLhsl(267, 61%, 27%)
HSVhsv(267, 75%, 43%)
CMYKcmyk(41.8%, 75.5%, 0%, 56.9%)
CIE-LABlab(20.04, 35.91, -41.26)
CIE-LCHlch(20.04, 54.70, 311.03°)
OKLaboklab(32.67% 0.0654 -0.1178)
OKLCHoklch(32.67% 0.135 299)
XYZxyz(5.3200, 2.9996, 15.0475)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B6E #496E1B
analogous
#1B206E #401B6E #6A1B6E
triadic
#401B6E #6E401B #1B6E40
tetradic
#401B6E #6E1B20 #496E1B #1B6E6A
square
#401B6E #6E1B20 #496E1B #1B6E6A
split-complementary
#401B6E #6E6A1B #206E1B
monochromatic
#0E0619 #230F3D #401B6E #5D279F #7936CE

Accessibility & contrast

On white

13.13
#401B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B6E
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B6E#FFFFFF#000000##FFFFFF
##401B6E1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#00306C
Tritanopia (blue-blind)
#353042
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401b6e;
/* rgb */ color: rgb(64, 27, 110);
/* oklch */ color: oklch(32.7% 0.135 299.0);
Tailwind
colors: {
  custom: {
    50: '#7a5b98',
    500: '#401b6e',
    950: '#000000',
  },
}
SCSS
$custom: #401b6e;
$custom-light: #7a5b98;
$custom-dark: #000000;
JSON
{
  "hex": "#401b6e",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 266.747,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32671,
    "c": 0.13478,
    "h": 299
  },
  "luminance": 0.03
}

Semantic roles & 50–950 ramp

primary
#401B6E
secondary
#78A342
accent
#E4449D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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