#401FC2#401FC2

#401FC2 is a dark, highly saturated violet. Relative luminance 0.060; OKLCH L 41.7% C 0.227 H 279.3°. Best body text is #FFFFFF at 9.58:1 contrast (WCAG AA passes).

Color values

HEX#401FC2
RGBrgb(64, 31, 194)
HSLhsl(252, 72%, 44%)
HSVhsv(252, 84%, 76%)
CMYKcmyk(67%, 84%, 0%, 23.9%)
CIE-LABlab(29.32, 57.82, -77.72)
CIE-LCHlch(29.32, 96.87, 306.65°)
OKLaboklab(41.7% 0.0366 -0.2244)
OKLCHoklch(41.7% 0.227 279.3)
XYZxyz(12.3388, 5.9640, 51.5294)
Luminance0.0597 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401FC2 #A1C21F
analogous
#1F50C2 #401FC2 #921FC2
triadic
#401FC2 #C2401F #1FC240
tetradic
#401FC2 #C21F50 #A1C21F #1FC292
square
#401FC2 #C21F50 #A1C21F #1FC292
split-complementary
#401FC2 #C2921F #50C21F
monochromatic
#1D0E58 #2F178D #401FC2 #5F3EE0 #8B73E9

Accessibility & contrast

On white

9.58
#401FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#401FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401FC2
9.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401FC2#FFFFFF#000000##FFFFFF
##401FC21.009.582.199.58
#FFFFFF9.581.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BC6
Deuteranopia (green-blind)
#003FBF
Tritanopia (blue-blind)
#005474
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #401fc2;
/* rgb */ color: rgb(64, 31, 194);
/* oklch */ color: oklch(41.7% 0.227 279.3);
Tailwind
colors: {
  custom: {
    50: '#8862d6',
    500: '#401fc2',
    950: '#000000',
  },
}
SCSS
$custom: #401fc2;
$custom-light: #8862d6;
$custom-dark: #000000;
JSON
{
  "hex": "#401fc2",
  "rgb": {
    "r": 64,
    "g": 31,
    "b": 194
  },
  "hsl": {
    "h": 252.147,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41704,
    "c": 0.22735,
    "h": 279.3
  },
  "luminance": 0.05965
}

Semantic roles & 50–950 ramp

primary
#401FC2
secondary
#BCCF6D
accent
#EF39CA
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0615
muted
#7E7A83

Preview Lab

Preview with #401FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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