#402E73#402E73

#402E73 is a dark, moderate violet. Relative luminance 0.043; OKLCH L 36.1% C 0.114 H 291.7°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#402E73
RGBrgb(64, 46, 115)
HSLhsl(256, 43%, 32%)
HSVhsv(256, 60%, 45%)
CMYKcmyk(44.3%, 60%, 0%, 54.9%)
CIE-LABlab(24.58, 26.19, -37.13)
CIE-LCHlch(24.58, 45.43, 305.20°)
OKLaboklab(36.08% 0.0421 -0.1057)
OKLCHoklch(36.08% 0.114 291.7)
XYZxyz(6.1850, 4.2816, 16.7169)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402E73 #61732E
analogous
#2E3F73 #402E73 #632E73
triadic
#402E73 #73402E #2E7340
tetradic
#402E73 #732E3F #61732E #2E7363
square
#402E73 #732E3F #61732E #2E7363
split-complementary
#402E73 #73632E #3F732E
monochromatic
#0F0B1C #281D47 #402E73 #583F9F #765DBE

Accessibility & contrast

On white

11.31
#402E73 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#402E73 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402E73
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402E73#FFFFFF#000000##FFFFFF
##402E731.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#053B75
Deuteranopia (green-blind)
#0B3971
Tritanopia (blue-blind)
#323D4B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #402e73;
/* rgb */ color: rgb(64, 46, 115);
/* oklch */ color: oklch(36.1% 0.114 291.7);
Tailwind
colors: {
  custom: {
    50: '#79679c',
    500: '#402e73',
    950: '#000000',
  },
}
SCSS
$custom: #402e73;
$custom-light: #79679c;
$custom-dark: #000000;
JSON
{
  "hex": "#402e73",
  "rgb": {
    "r": 64,
    "g": 46,
    "b": 115
  },
  "hsl": {
    "h": 255.652,
    "s": 42.857,
    "l": 31.569
  },
  "oklch": {
    "l": 0.36079,
    "c": 0.11377,
    "h": 291.7
  },
  "luminance": 0.04282
}

Semantic roles & 50–950 ramp

primary
#402E73
secondary
#91A458
accent
#D355B2
background
#F7F6F9
surface
#EEEBF2
border
#C9C6CC
text
#09060E
muted
#7B7A7E

Preview Lab

Preview with #402E73

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

Preview Lab → · Contrast checker → · Palette generator →

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