#401B56#401B56

#401B56 is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.7% C 0.106 H 310.5°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#401B56
RGBrgb(64, 27, 86)
HSLhsl(278, 52%, 22%)
HSVhsv(278, 69%, 34%)
CMYKcmyk(25.6%, 68.6%, 0%, 66.3%)
CIE-LABlab(18.12, 29.48, -28.52)
CIE-LCHlch(18.12, 41.02, 315.95°)
OKLaboklab(30.69% 0.0687 -0.0804)
OKLCHoklch(30.69% 0.106 310.5)
XYZxyz(4.1857, 2.5458, 9.0732)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B56 #31561B
analogous
#231B56 #401B56 #561B4F
triadic
#401B56 #56401B #1B5640
tetradic
#401B56 #56231B #31561B #1B4F56
square
#401B56 #56231B #31561B #1B4F56
split-complementary
#401B56 #4F561B #1B5623
monochromatic
#110717 #1D0C27 #401B56 #632A85 #8538B3

Accessibility & contrast

On white

13.91
#401B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401B56
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B56#FFFFFF#000000##FFFFFF
##401B561.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012B58
Deuteranopia (green-blind)
#142D55
Tritanopia (blue-blind)
#3D2735
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401b56;
/* rgb */ color: rgb(64, 27, 86);
/* oklch */ color: oklch(30.7% 0.106 310.5);
Tailwind
colors: {
  custom: {
    50: '#775a86',
    500: '#401b56',
    950: '#000000',
  },
}
SCSS
$custom: #401b56;
$custom-light: #775a86;
$custom-dark: #000000;
JSON
{
  "hex": "#401b56",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 86
  },
  "hsl": {
    "h": 277.627,
    "s": 52.212,
    "l": 22.157
  },
  "oklch": {
    "l": 0.30693,
    "c": 0.10577,
    "h": 310.5
  },
  "luminance": 0.02546
}

Semantic roles & 50–950 ramp

primary
#401B56
secondary
#5D8C41
accent
#DC4C82
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401B56

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

Preview Lab → · Contrast checker → · Palette generator →

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