#401457#401457

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

Color values

HEX#401457
RGBrgb(64, 20, 87)
HSLhsl(279, 63%, 21%)
HSVhsv(279, 77%, 34%)
CMYKcmyk(26.4%, 77%, 0%, 65.9%)
CIE-LABlab(16.89, 33.38, -31.19)
CIE-LCHlch(16.89, 45.69, 316.95°)
OKLaboklab(29.83% 0.0776 -0.0882)
OKLCHoklch(29.83% 0.117 311.3)
XYZxyz(4.0845, 2.2785, 9.2396)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401457 #2B5714
analogous
#1E1457 #401457 #57144C
triadic
#401457 #574014 #145740
tetradic
#401457 #571E14 #2B5714 #144C57
square
#401457 #571E14 #2B5714 #144C57
split-complementary
#401457 #4C5714 #14571E
monochromatic
#120619 #1B0925 #401457 #651F89 #892BBB

Accessibility & contrast

On white

14.43
#401457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401457
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401457#FFFFFF#000000##FFFFFF
##4014571.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401457;
/* rgb */ color: rgb(64, 20, 87);
/* oklch */ color: oklch(29.8% 0.117 311.3);
Tailwind
colors: {
  custom: {
    50: '#785687',
    500: '#401457',
    950: '#000000',
  },
}
SCSS
$custom: #401457;
$custom-light: #785687;
$custom-dark: #000000;
JSON
{
  "hex": "#401457",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 279.403,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29828,
    "c": 0.11744,
    "h": 311.3
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#401457
secondary
#568F38
accent
#E6427A
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401457

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

Preview Lab → · Contrast checker → · Palette generator →

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