#401B67#401B67

#401B67 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.1% C 0.126 H 301.9°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#401B67
RGBrgb(64, 27, 103)
HSLhsl(269, 58%, 25%)
HSVhsv(269, 74%, 40%)
CMYKcmyk(37.9%, 73.8%, 0%, 59.6%)
CIE-LABlab(19.45, 33.99, -37.67)
CIE-LCHlch(19.45, 50.73, 312.06°)
OKLaboklab(32.06% 0.0668 -0.1073)
OKLCHoklch(32.06% 0.126 301.9)
XYZxyz(4.9539, 2.8531, 13.1191)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B67 #42671B
analogous
#1B1C67 #401B67 #661B67
triadic
#401B67 #67401B #1B6740
tetradic
#401B67 #671B1C #42671B #1B6766
square
#401B67 #671B1C #42671B #1B6766
split-complementary
#401B67 #67661B #1C671B
monochromatic
#0F0618 #220E37 #401B67 #5E2897 #7C34C8

Accessibility & contrast

On white

13.37
#401B67 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#401B67 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B67
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B67#FFFFFF#000000##FFFFFF
##401B671.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F69
Deuteranopia (green-blind)
#002F65
Tritanopia (blue-blind)
#382D3F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401b67;
/* rgb */ color: rgb(64, 27, 103);
/* oklch */ color: oklch(32.1% 0.126 301.9);
Tailwind
colors: {
  custom: {
    50: '#795b93',
    500: '#401b67',
    950: '#000000',
  },
}
SCSS
$custom: #401b67;
$custom-light: #795b93;
$custom-dark: #000000;
JSON
{
  "hex": "#401b67",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 103
  },
  "hsl": {
    "h": 269.211,
    "s": 58.462,
    "l": 25.49
  },
  "oklch": {
    "l": 0.3206,
    "c": 0.12637,
    "h": 301.9
  },
  "luminance": 0.02853
}

Semantic roles & 50–950 ramp

primary
#401B67
secondary
#709C42
accent
#E24696
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #401B67

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

Preview Lab → · Contrast checker → · Palette generator →

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