#401B57#401B57

#401B57 is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.107 H 309.9°. Best body text is #FFFFFF at 13.89:1 contrast (WCAG AA passes).

Color values

HEX#401B57
RGBrgb(64, 27, 87)
HSLhsl(277, 53%, 22%)
HSVhsv(277, 69%, 34%)
CMYKcmyk(26.4%, 69%, 0%, 65.9%)
CIE-LABlab(18.20, 29.74, -29.08)
CIE-LCHlch(18.20, 41.59, 315.64°)
OKLaboklab(30.77% 0.0687 -0.082)
OKLCHoklch(30.77% 0.107 309.9)
XYZxyz(4.2263, 2.5621, 9.2869)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401B57 #32571B
analogous
#221B57 #401B57 #571B50
triadic
#401B57 #57401B #1B5740
tetradic
#401B57 #57221B #32571B #1B5057
square
#401B57 #57221B #32571B #1B5057
split-complementary
#401B57 #50571B #1B5722
monochromatic
#110717 #1E0D28 #401B57 #622986 #8538B4

Accessibility & contrast

On white

13.89
#401B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401B57
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401B57#FFFFFF#000000##FFFFFF
##401B571.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B59
Deuteranopia (green-blind)
#132D56
Tritanopia (blue-blind)
#3D2736
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401b57;
/* rgb */ color: rgb(64, 27, 87);
/* oklch */ color: oklch(30.8% 0.107 309.9);
Tailwind
colors: {
  custom: {
    50: '#775a87',
    500: '#401b57',
    950: '#000000',
  },
}
SCSS
$custom: #401b57;
$custom-light: #775a87;
$custom-dark: #000000;
JSON
{
  "hex": "#401b57",
  "rgb": {
    "r": 64,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 277,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30768,
    "c": 0.10699,
    "h": 309.9
  },
  "luminance": 0.02562
}

Semantic roles & 50–950 ramp

primary
#401B57
secondary
#5E8D41
accent
#DC4C83
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401B57

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

Preview Lab → · Contrast checker → · Palette generator →

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