#402C90#402C90

#402C90 is a dark, vivid violet. Relative luminance 0.049; OKLCH L 38.2% C 0.156 H 285.5°. Best body text is #FFFFFF at 10.60:1 contrast (WCAG AA passes).

Color values

HEX#402C90
RGBrgb(64, 44, 144)
HSLhsl(252, 53%, 37%)
HSVhsv(252, 69%, 56%)
CMYKcmyk(55.6%, 69.4%, 0%, 43.5%)
CIE-LABlab(26.46, 36.54, -52.29)
CIE-LCHlch(26.46, 63.79, 304.94°)
OKLaboklab(38.18% 0.0417 -0.1503)
OKLCHoklch(38.18% 0.156 285.5)
XYZxyz(8.0476, 4.9045, 26.9028)
Luminance0.0491 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C90 #7C902C
analogous
#2C4A90 #402C90 #722C90
triadic
#402C90 #90402C #2C9040
tetradic
#402C90 #902C4A #7C902C #2C9072
square
#402C90 #902C4A #7C902C #2C9072
split-complementary
#402C90 #90722C #4A902C
monochromatic
#160F32 #2B1E61 #402C90 #553ABF #7B66D0

Accessibility & contrast

On white

10.60
#402C90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#402C90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402C90
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C90#FFFFFF#000000##FFFFFF
##402C901.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004193
Deuteranopia (green-blind)
#003C8E
Tritanopia (blue-blind)
#1D465A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #402c90;
/* rgb */ color: rgb(64, 44, 144);
/* oklch */ color: oklch(38.2% 0.156 285.5);
Tailwind
colors: {
  custom: {
    50: '#7d67b1',
    500: '#402c90',
    950: '#000000',
  },
}
SCSS
$custom: #402c90;
$custom-light: #7d67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#402c90",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 144
  },
  "hsl": {
    "h": 252,
    "s": 53.191,
    "l": 36.863
  },
  "oklch": {
    "l": 0.38181,
    "c": 0.15597,
    "h": 285.5
  },
  "luminance": 0.04905
}

Semantic roles & 50–950 ramp

primary
#402C90
secondary
#A6B761
accent
#DD4BC0
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0611
muted
#7C7A80

Preview Lab

Preview with #402C90

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

Preview Lab → · Contrast checker → · Palette generator →

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