#401058#401058

#401058 is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.5% C 0.124 H 311.4°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#401058
RGBrgb(64, 16, 88)
HSLhsl(280, 69%, 20%)
HSVhsv(280, 82%, 35%)
CMYKcmyk(27.3%, 81.8%, 0%, 65.5%)
CIE-LABlab(16.33, 35.43, -32.76)
CIE-LCHlch(16.33, 48.25, 317.25°)
OKLaboklab(29.46% 0.0818 -0.0928)
OKLCHoklch(29.46% 0.124 311.4)
XYZxyz(4.0608, 2.1653, 9.4346)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401058 #285810
analogous
#1C1058 #401058 #58104C
triadic
#401058 #584010 #105840
tetradic
#401058 #581C10 #285810 #104C58
square
#401058 #581C10 #285810 #104C58
split-complementary
#401058 #4C5810 #10581C
monochromatic
#13051A #1A0724 #401058 #66198C #8B23C0

Accessibility & contrast

On white

14.65
#401058 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#401058 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401058
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401058#FFFFFF#000000##FFFFFF
##4010581.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265A
Deuteranopia (green-blind)
#032956
Tritanopia (blue-blind)
#3D2133
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401058;
/* rgb */ color: rgb(64, 16, 88);
/* oklch */ color: oklch(29.5% 0.124 311.4);
Tailwind
colors: {
  custom: {
    50: '#785488',
    500: '#401058',
    950: '#000000',
  },
}
SCSS
$custom: #401058;
$custom-light: #785488;
$custom-dark: #000000;
JSON
{
  "hex": "#401058",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 88
  },
  "hsl": {
    "h": 280,
    "s": 69.231,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29461,
    "c": 0.12366,
    "h": 311.4
  },
  "luminance": 0.02165
}

Semantic roles & 50–950 ramp

primary
#401058
secondary
#529132
accent
#EC3C77
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401058

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

Preview Lab → · Contrast checker → · Palette generator →

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