#402D73#402D73

#402D73 is a dark, moderate violet. Relative luminance 0.042; OKLCH L 35.9% C 0.115 H 292.1°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#402D73
RGBrgb(64, 45, 115)
HSLhsl(256, 44%, 31%)
HSVhsv(256, 61%, 45%)
CMYKcmyk(44.3%, 60.9%, 0%, 54.9%)
CIE-LABlab(24.34, 26.83, -37.52)
CIE-LCHlch(24.34, 46.13, 305.57°)
OKLaboklab(35.9% 0.0434 -0.1069)
OKLCHoklch(35.9% 0.115 292.1)
XYZxyz(6.1464, 4.2044, 16.7040)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402D73 #60732D
analogous
#2D3D73 #402D73 #632D73
triadic
#402D73 #73402D #2D7340
tetradic
#402D73 #732D3D #60732D #2D7363
square
#402D73 #732D3D #60732D #2D7363
split-complementary
#402D73 #73632D #3D732D
monochromatic
#0F0B1B #281C47 #402D73 #583E9F #765BBF

Accessibility & contrast

On white

11.41
#402D73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#402D73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402D73
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402D73#FFFFFF#000000##FFFFFF
##402D731.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013B75
Deuteranopia (green-blind)
#083871
Tritanopia (blue-blind)
#323C4B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #402d73;
/* rgb */ color: rgb(64, 45, 115);
/* oklch */ color: oklch(35.9% 0.115 292.1);
Tailwind
colors: {
  custom: {
    50: '#79679c',
    500: '#402d73',
    950: '#000000',
  },
}
SCSS
$custom: #402d73;
$custom-light: #79679c;
$custom-dark: #000000;
JSON
{
  "hex": "#402d73",
  "rgb": {
    "r": 64,
    "g": 45,
    "b": 115
  },
  "hsl": {
    "h": 256.286,
    "s": 43.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.35899,
    "c": 0.11534,
    "h": 292.1
  },
  "luminance": 0.04205
}

Semantic roles & 50–950 ramp

primary
#402D73
secondary
#90A457
accent
#D354B1
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #402D73

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

Preview Lab → · Contrast checker → · Palette generator →

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