#402379#402379

#402379 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 34.8% C 0.138 H 293.4°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#402379
RGBrgb(64, 35, 121)
HSLhsl(260, 55%, 31%)
HSVhsv(260, 71%, 47%)
CMYKcmyk(47.1%, 71.1%, 0%, 52.5%)
CIE-LABlab(22.56, 34.71, -44.23)
CIE-LCHlch(22.56, 56.22, 308.12°)
OKLaboklab(34.76% 0.0547 -0.1266)
OKLCHoklch(34.76% 0.138 293.4)
XYZxyz(6.1656, 3.6723, 18.4694)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402379 #5C7923
analogous
#233179 #402379 #6B2379
triadic
#402379 #794023 #237940
tetradic
#402379 #792331 #5C7923 #23796B
square
#402379 #792331 #5C7923 #23796B
split-complementary
#402379 #796B23 #317923
monochromatic
#0E081A #27154A #402379 #5931A8 #764BCB

Accessibility & contrast

On white

12.11
#402379 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#402379 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402379
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402379#FFFFFF#000000##FFFFFF
##4023791.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#2F384B
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #402379;
/* rgb */ color: rgb(64, 35, 121);
/* oklch */ color: oklch(34.8% 0.138 293.4);
Tailwind
colors: {
  custom: {
    50: '#7a60a0',
    500: '#402379',
    950: '#000000',
  },
}
SCSS
$custom: #402379;
$custom-light: #7a60a0;
$custom-dark: #000000;
JSON
{
  "hex": "#402379",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 121
  },
  "hsl": {
    "h": 260.233,
    "s": 55.128,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34759,
    "c": 0.13792,
    "h": 293.4
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#402379
secondary
#8BAC4C
accent
#DE49AC
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A050F
muted
#7C797E

Preview Lab

Preview with #402379

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

Preview Lab → · Contrast checker → · Palette generator →

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