#401458#401458

#401458 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.9% C 0.119 H 310.8°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#401458
RGBrgb(64, 20, 88)
HSLhsl(279, 63%, 21%)
HSVhsv(279, 77%, 35%)
CMYKcmyk(27.3%, 77.3%, 0%, 65.5%)
CIE-LABlab(16.96, 33.63, -31.73)
CIE-LCHlch(16.96, 46.24, 316.66°)
OKLaboklab(29.91% 0.0774 -0.0898)
OKLCHoklch(29.91% 0.119 310.8)
XYZxyz(4.1256, 2.2950, 9.4563)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401458 #2C5814
analogous
#1E1458 #401458 #58144E
triadic
#401458 #584014 #145840
tetradic
#401458 #581E14 #2C5814 #144E58
square
#401458 #581E14 #2C5814 #144E58
split-complementary
#401458 #4E5814 #14581E
monochromatic
#120619 #1C0926 #401458 #641F8A #892BBC

Accessibility & contrast

On white

14.39
#401458 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401458
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401458#FFFFFF#000000##FFFFFF
##4014581.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#092B57
Tritanopia (blue-blind)
#3D2334
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401458;
/* rgb */ color: rgb(64, 20, 88);
/* oklch */ color: oklch(29.9% 0.119 310.8);
Tailwind
colors: {
  custom: {
    50: '#785688',
    500: '#401458',
    950: '#000000',
  },
}
SCSS
$custom: #401458;
$custom-light: #785688;
$custom-dark: #000000;
JSON
{
  "hex": "#401458",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 88
  },
  "hsl": {
    "h": 278.824,
    "s": 62.963,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29909,
    "c": 0.11855,
    "h": 310.8
  },
  "luminance": 0.02295
}

Semantic roles & 50–950 ramp

primary
#401458
secondary
#579038
accent
#E6427C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401458

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

Preview Lab → · Contrast checker → · Palette generator →

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