#401E98#401E98

#401E98 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.181 H 286.4°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#401E98
RGBrgb(64, 30, 152)
HSLhsl(257, 67%, 36%)
HSVhsv(257, 80%, 60%)
CMYKcmyk(57.9%, 80.3%, 0%, 40.4%)
CIE-LABlab(24.59, 46.36, -60.29)
CIE-LCHlch(24.59, 76.05, 307.56°)
OKLaboklab(37.09% 0.0511 -0.1736)
OKLCHoklch(37.09% 0.181 286.4)
XYZxyz(8.2444, 4.2851, 30.0923)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401E98 #76981E
analogous
#1E3998 #401E98 #7D1E98
triadic
#401E98 #98401E #1E9840
tetradic
#401E98 #981E39 #76981E #1E987D
square
#401E98 #981E39 #76981E #1E987D
split-complementary
#401E98 #987D1E #39981E
monochromatic
#150A32 #2A1465 #401E98 #5628CB #7A53DD

Accessibility & contrast

On white

11.31
#401E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#401E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401E98
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401E98#FFFFFF#000000##FFFFFF
##401E981.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003796
Tritanopia (blue-blind)
#14425B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #401e98;
/* rgb */ color: rgb(64, 30, 152);
/* oklch */ color: oklch(37.1% 0.181 286.4);
Tailwind
colors: {
  custom: {
    50: '#805fb7',
    500: '#401e98',
    950: '#000000',
  },
}
SCSS
$custom: #401e98;
$custom-light: #805fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#401e98",
  "rgb": {
    "r": 64,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 256.721,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.37093,
    "c": 0.18098,
    "h": 286.4
  },
  "luminance": 0.04286
}

Semantic roles & 50–950 ramp

primary
#401E98
secondary
#A1C051
accent
#EA3EBA
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #401E98

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

Preview Lab → · Contrast checker → · Palette generator →

#401E98 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva