#402A73#402A73

#402A73 is a dark, moderate violet. Relative luminance 0.040; OKLCH L 35.4% C 0.120 H 293.2°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).

Color values

HEX#402A73
RGBrgb(64, 42, 115)
HSLhsl(258, 46%, 31%)
HSVhsv(258, 63%, 45%)
CMYKcmyk(44.3%, 63.5%, 0%, 54.9%)
CIE-LABlab(23.62, 28.72, -38.68)
CIE-LCHlch(23.62, 48.18, 306.59°)
OKLaboklab(35.37% 0.0472 -0.1103)
OKLCHoklch(35.37% 0.12 293.2)
XYZxyz(6.0360, 3.9836, 16.6672)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402A73 #5D732A
analogous
#2A3873 #402A73 #642A73
triadic
#402A73 #73402A #2A7340
tetradic
#402A73 #732A38 #5D732A #2A7364
square
#402A73 #732A38 #5D732A #2A7364
split-complementary
#402A73 #73642A #38732A
monochromatic
#0E0919 #271A46 #402A73 #593AA0 #7656C1

Accessibility & contrast

On white

11.69
#402A73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#402A73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402A73
11.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402A73#FFFFFF#000000##FFFFFF
##402A731.0011.691.8011.69
#FFFFFF11.691.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003975
Deuteranopia (green-blind)
#003771
Tritanopia (blue-blind)
#323A4A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #402a73;
/* rgb */ color: rgb(64, 42, 115);
/* oklch */ color: oklch(35.4% 0.120 293.2);
Tailwind
colors: {
  custom: {
    50: '#79649c',
    500: '#402a73',
    950: '#000000',
  },
}
SCSS
$custom: #402a73;
$custom-light: #79649c;
$custom-dark: #000000;
JSON
{
  "hex": "#402a73",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 115
  },
  "hsl": {
    "h": 258.082,
    "s": 46.497,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35373,
    "c": 0.11996,
    "h": 293.2
  },
  "luminance": 0.03984
}

Semantic roles & 50–950 ramp

primary
#402A73
secondary
#8CA554
accent
#D652AE
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09050E
muted
#7B7A7E

Preview Lab

Preview with #402A73

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

Preview Lab → · Contrast checker → · Palette generator →

#402A73 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva