#401B6D#401B6D

#401B6D is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.134 H 299.4°. Best body text is #FFFFFF at 13.16:1 contrast (WCAG AA passes).

Color values

HEX#401B6D
RGBrgb(64, 27, 109)
HSLhsl(267, 60%, 27%)
HSVhsv(267, 75%, 43%)
CMYKcmyk(41.3%, 75.2%, 0%, 57.3%)
CIE-LABlab(19.96, 35.63, -40.75)
CIE-LCHlch(19.96, 54.13, 311.16°)
OKLaboklab(32.58% 0.0656 -0.1163)
OKLCHoklch(32.58% 0.134 299.4)
XYZxyz(5.2659, 2.9779, 14.7624)
Luminance0.0298 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B6D #486D1B
analogous
#1B1F6D #401B6D #691B6D
triadic
#401B6D #6D401B #1B6D40
tetradic
#401B6D #6D1B1F #486D1B #1B6D69
square
#401B6D #6D1B1F #486D1B #1B6D69
split-complementary
#401B6D #6D691B #1F6D1B
monochromatic
#0E0619 #230F3C #401B6D #5D279E #7A35CD

Accessibility & contrast

On white

13.16
#401B6D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B6D
13.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B6D#FFFFFF#000000##FFFFFF
##401B6D1.0013.161.6013.16
#FFFFFF13.161.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#002F6B
Tritanopia (blue-blind)
#352F42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401b6d;
/* rgb */ color: rgb(64, 27, 109);
/* oklch */ color: oklch(32.6% 0.134 299.4);
Tailwind
colors: {
  custom: {
    50: '#795b98',
    500: '#401b6d',
    950: '#000000',
  },
}
SCSS
$custom: #401b6d;
$custom-light: #795b98;
$custom-dark: #000000;
JSON
{
  "hex": "#401b6d",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 109
  },
  "hsl": {
    "h": 267.073,
    "s": 60.294,
    "l": 26.667
  },
  "oklch": {
    "l": 0.32582,
    "c": 0.13358,
    "h": 299.4
  },
  "luminance": 0.02978
}

Semantic roles & 50–950 ramp

primary
#401B6D
secondary
#77A242
accent
#E3449C
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401B6D

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

Preview Lab → · Contrast checker → · Palette generator →

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