#401DC2#401DC2

#401DC2 is a dark, highly saturated violet. Relative luminance 0.059; OKLCH L 41.5% C 0.229 H 279.4°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).

Color values

HEX#401DC2
RGBrgb(64, 29, 194)
HSLhsl(253, 74%, 44%)
HSVhsv(253, 85%, 76%)
CMYKcmyk(67%, 85.1%, 0%, 23.9%)
CIE-LABlab(29.06, 58.59, -78.15)
CIE-LCHlch(29.06, 97.67, 306.86°)
OKLaboklab(41.53% 0.0374 -0.2256)
OKLCHoklch(41.53% 0.229 279.4)
XYZxyz(12.2882, 5.8627, 51.5125)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401DC2 #9FC21D
analogous
#1D4CC2 #401DC2 #921DC2
triadic
#401DC2 #C2401D #1DC240
tetradic
#401DC2 #C21D4C #9FC21D #1DC292
square
#401DC2 #C21D4C #9FC21D #1DC292
split-complementary
#401DC2 #C2921D #4CC21D
monochromatic
#1D0D58 #2E158D #401DC2 #5E3BE2 #8A70EA

Accessibility & contrast

On white

9.66
#401DC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#401DC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401DC2
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401DC2#FFFFFF#000000##FFFFFF
##401DC21.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003EBF
Tritanopia (blue-blind)
#005373
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #401dc2;
/* rgb */ color: rgb(64, 29, 194);
/* oklch */ color: oklch(41.5% 0.229 279.4);
Tailwind
colors: {
  custom: {
    50: '#8861d6',
    500: '#401dc2',
    950: '#000000',
  },
}
SCSS
$custom: #401dc2;
$custom-light: #8861d6;
$custom-dark: #000000;
JSON
{
  "hex": "#401dc2",
  "rgb": {
    "r": 64,
    "g": 29,
    "b": 194
  },
  "hsl": {
    "h": 252.727,
    "s": 73.991,
    "l": 43.725
  },
  "oklch": {
    "l": 0.41528,
    "c": 0.22866,
    "h": 279.4
  },
  "luminance": 0.05864
}

Semantic roles & 50–950 ramp

primary
#401DC2
secondary
#BBD06B
accent
#F137C9
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0515
muted
#7E7A83

Preview Lab

Preview with #401DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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