#402390#402390

#402390 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.9% C 0.167 H 287.4°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#402390
RGBrgb(64, 35, 144)
HSLhsl(256, 61%, 35%)
HSVhsv(256, 76%, 56%)
CMYKcmyk(55.6%, 75.7%, 0%, 43.5%)
CIE-LABlab(24.66, 41.55, -55.25)
CIE-LCHlch(24.66, 69.13, 306.95°)
OKLaboklab(36.9% 0.0497 -0.1589)
OKLCHoklch(36.9% 0.167 287.4)
XYZxyz(7.7479, 4.3053, 26.8029)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402390 #739023
analogous
#233D90 #402390 #762390
triadic
#402390 #904023 #239040
tetradic
#402390 #90233D #739023 #239076
square
#402390 #90233D #739023 #239076
split-complementary
#402390 #907623 #3D9023
monochromatic
#140B2E #2A175F #402390 #562FC1 #7957D6

Accessibility & contrast

On white

11.28
#402390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#402390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402390
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402390#FFFFFF#000000##FFFFFF
##4023901.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D93
Deuteranopia (green-blind)
#00388E
Tritanopia (blue-blind)
#1E4158
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #402390;
/* rgb */ color: rgb(64, 35, 144);
/* oklch */ color: oklch(36.9% 0.167 287.4);
Tailwind
colors: {
  custom: {
    50: '#7e61b2',
    500: '#402390',
    950: '#000000',
  },
}
SCSS
$custom: #402390;
$custom-light: #7e61b2;
$custom-dark: #000000;
JSON
{
  "hex": "#402390",
  "rgb": {
    "r": 64,
    "g": 35,
    "b": 144
  },
  "hsl": {
    "h": 255.963,
    "s": 60.894,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36896,
    "c": 0.1665,
    "h": 287.4
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#402390
secondary
#9FBA54
accent
#E444B9
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402390

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

Preview Lab → · Contrast checker → · Palette generator →

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