#401C58#401C58

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

Color values

HEX#401C58
RGBrgb(64, 28, 88)
HSLhsl(276, 52%, 23%)
HSVhsv(276, 68%, 35%)
CMYKcmyk(27.3%, 68.2%, 0%, 65.5%)
CIE-LABlab(18.48, 29.43, -29.30)
CIE-LCHlch(18.48, 41.53, 315.13°)
OKLaboklab(30.99% 0.0673 -0.0827)
OKLCHoklch(30.99% 0.107 309.1)
XYZxyz(4.2907, 2.6252, 9.5113)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401C58 #34581C
analogous
#221C58 #401C58 #581C52
triadic
#401C58 #58401C #1C5840
tetradic
#401C58 #58221C #34581C #1C5258
square
#401C58 #58221C #34581C #1C5258
split-complementary
#401C58 #52581C #1C5822
monochromatic
#110717 #1E0D2A #401C58 #622B86 #843AB5

Accessibility & contrast

On white

13.77
#401C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401C58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401C58
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401C58#FFFFFF#000000##FFFFFF
##401C581.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5A
Deuteranopia (green-blind)
#132E57
Tritanopia (blue-blind)
#3D2837
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401c58;
/* rgb */ color: rgb(64, 28, 88);
/* oklch */ color: oklch(31.0% 0.107 309.1);
Tailwind
colors: {
  custom: {
    50: '#775b87',
    500: '#401c58',
    950: '#000000',
  },
}
SCSS
$custom: #401c58;
$custom-light: #775b87;
$custom-dark: #000000;
JSON
{
  "hex": "#401c58",
  "rgb": {
    "r": 64,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 276,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.30993,
    "c": 0.10659,
    "h": 309.1
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#401C58
secondary
#608E42
accent
#DB4D86
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09040B
muted
#7B797C

Preview Lab

Preview with #401C58

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

Preview Lab → · Contrast checker → · Palette generator →

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