#401459#401459

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

Color values

HEX#401459
RGBrgb(64, 20, 89)
HSLhsl(278, 63%, 21%)
HSVhsv(278, 78%, 35%)
CMYKcmyk(28.1%, 77.5%, 0%, 65.1%)
CIE-LABlab(17.04, 33.88, -32.28)
CIE-LCHlch(17.04, 46.79, 316.38°)
OKLaboklab(29.99% 0.0773 -0.0914)
OKLCHoklch(29.99% 0.12 310.2)
XYZxyz(4.1673, 2.3117, 9.6759)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401459 #2D5914
analogous
#1E1459 #401459 #591450
triadic
#401459 #594014 #145940
tetradic
#401459 #591E14 #2D5914 #145059
square
#401459 #591E14 #2D5914 #145059
split-complementary
#401459 #505914 #14591E
monochromatic
#120619 #1C0927 #401459 #641F8B #882ABD

Accessibility & contrast

On white

14.36
#401459 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401459
14.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401459#FFFFFF#000000##FFFFFF
##4014591.0014.361.4614.36
#FFFFFF14.361.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#072B58
Tritanopia (blue-blind)
#3D2435
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401459;
/* rgb */ color: rgb(64, 20, 89);
/* oklch */ color: oklch(30.0% 0.120 310.2);
Tailwind
colors: {
  custom: {
    50: '#785688',
    500: '#401459',
    950: '#000000',
  },
}
SCSS
$custom: #401459;
$custom-light: #785688;
$custom-dark: #000000;
JSON
{
  "hex": "#401459",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 89
  },
  "hsl": {
    "h": 278.261,
    "s": 63.303,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29991,
    "c": 0.11966,
    "h": 310.2
  },
  "luminance": 0.02312
}

Semantic roles & 50–950 ramp

primary
#401459
secondary
#589138
accent
#E6417D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401459

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

Preview Lab → · Contrast checker → · Palette generator →

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