#401374#401374

#401374 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.151 H 298.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#401374
RGBrgb(64, 19, 116)
HSLhsl(268, 72%, 26%)
HSVhsv(268, 84%, 45%)
CMYKcmyk(44.8%, 83.6%, 0%, 54.5%)
CIE-LABlab(19.29, 41.25, -46.36)
CIE-LCHlch(19.29, 62.06, 311.66°)
OKLaboklab(32.32% 0.0712 -0.1327)
OKLCHoklch(32.32% 0.151 298.2)
XYZxyz(5.4988, 2.8166, 16.7736)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401374 #477413
analogous
#131774 #401374 #711374
triadic
#401374 #744013 #137440
tetradic
#401374 #741317 #477413 #137471
square
#401374 #741317 #477413 #137471
split-complementary
#401374 #747113 #177413
monochromatic
#0F041A #230A3F #401374 #5D1CA9 #7A26DB

Accessibility & contrast

On white

13.43
#401374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#401374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401374
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401374#FFFFFF#000000##FFFFFF
##4013741.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#332E44
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401374;
/* rgb */ color: rgb(64, 19, 116);
/* oklch */ color: oklch(32.3% 0.151 298.2);
Tailwind
colors: {
  custom: {
    50: '#7b579d',
    500: '#401374',
    950: '#000000',
  },
}
SCSS
$custom: #401374;
$custom-light: #7b579d;
$custom-dark: #000000;
JSON
{
  "hex": "#401374",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 267.835,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32317,
    "c": 0.15062,
    "h": 298.2
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#401374
secondary
#76AA38
accent
#EF399A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401374

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

Preview Lab → · Contrast checker → · Palette generator →

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