#401557#401557

#401557 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 30.0% C 0.116 H 311.2°. Best body text is #FFFFFF at 14.36:1 contrast (WCAG AA passes).

Color values

HEX#401557
RGBrgb(64, 21, 87)
HSLhsl(279, 61%, 21%)
HSVhsv(279, 76%, 34%)
CMYKcmyk(26.4%, 75.9%, 0%, 65.9%)
CIE-LABlab(17.06, 32.90, -30.91)
CIE-LCHlch(17.06, 45.14, 316.79°)
OKLaboklab(29.95% 0.0764 -0.0874)
OKLCHoklch(29.95% 0.116 311.2)
XYZxyz(4.1025, 2.3145, 9.2456)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401557 #2C5715
analogous
#1F1557 #401557 #57154D
triadic
#401557 #574015 #155740
tetradic
#401557 #571F15 #2C5715 #154D57
square
#401557 #571F15 #2C5715 #154D57
split-complementary
#401557 #4D5715 #15571F
monochromatic
#120619 #1C0926 #401557 #642188 #892DBA

Accessibility & contrast

On white

14.36
#401557 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#401557 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401557
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401557#FFFFFF#000000##FFFFFF
##4015571.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002859
Deuteranopia (green-blind)
#0C2B56
Tritanopia (blue-blind)
#3D2334
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401557;
/* rgb */ color: rgb(64, 21, 87);
/* oklch */ color: oklch(30.0% 0.116 311.2);
Tailwind
colors: {
  custom: {
    50: '#785787',
    500: '#401557',
    950: '#000000',
  },
}
SCSS
$custom: #401557;
$custom-light: #785787;
$custom-dark: #000000;
JSON
{
  "hex": "#401557",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 87
  },
  "hsl": {
    "h": 279.091,
    "s": 61.111,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29951,
    "c": 0.11606,
    "h": 311.2
  },
  "luminance": 0.02314
}

Semantic roles & 50–950 ramp

primary
#401557
secondary
#578F39
accent
#E4447C
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401557

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

Preview Lab → · Contrast checker → · Palette generator →

#401557 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva