#401558#401558

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

Color values

HEX#401558
RGBrgb(64, 21, 88)
HSLhsl(279, 61%, 21%)
HSVhsv(279, 76%, 35%)
CMYKcmyk(27.3%, 76.1%, 0%, 65.5%)
CIE-LABlab(17.14, 33.15, -31.46)
CIE-LCHlch(17.14, 45.70, 316.50°)
OKLaboklab(30.03% 0.0763 -0.089)
OKLCHoklch(30.03% 0.117 310.6)
XYZxyz(4.1436, 2.3310, 9.4623)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401558 #2D5815
analogous
#1F1558 #401558 #58154F
triadic
#401558 #584015 #155840
tetradic
#401558 #581F15 #2D5815 #154F58
square
#401558 #581F15 #2D5815 #154F58
split-complementary
#401558 #4F5815 #15581F
monochromatic
#120619 #1C0927 #401558 #642189 #882DBB

Accessibility & contrast

On white

14.32
#401558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401558
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401558#FFFFFF#000000##FFFFFF
##4015581.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#0A2B57
Tritanopia (blue-blind)
#3D2435
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401558;
/* rgb */ color: rgb(64, 21, 88);
/* oklch */ color: oklch(30.0% 0.117 310.6);
Tailwind
colors: {
  custom: {
    50: '#785788',
    500: '#401558',
    950: '#000000',
  },
}
SCSS
$custom: #401558;
$custom-light: #785788;
$custom-dark: #000000;
JSON
{
  "hex": "#401558",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 278.507,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.30031,
    "c": 0.11718,
    "h": 310.6
  },
  "luminance": 0.02331
}

Semantic roles & 50–950 ramp

primary
#401558
secondary
#589039
accent
#E5437D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401558

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

Preview Lab → · Contrast checker → · Palette generator →

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