#402C92#402C92

#402C92 is a dark, vivid violet. Relative luminance 0.050; OKLCH L 38.4% C 0.159 H 285.1°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#402C92
RGBrgb(64, 44, 146)
HSLhsl(252, 54%, 37%)
HSVhsv(252, 70%, 57%)
CMYKcmyk(56.2%, 69.9%, 0%, 42.7%)
CIE-LABlab(26.64, 37.16, -53.24)
CIE-LCHlch(26.64, 64.92, 304.92°)
OKLaboklab(38.36% 0.0414 -0.1531)
OKLCHoklch(38.36% 0.159 285.1)
XYZxyz(8.2018, 4.9662, 27.7150)
Luminance0.0497 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402C92 #7E922C
analogous
#2C4B92 #402C92 #732C92
triadic
#402C92 #92402C #2C9240
tetradic
#402C92 #922C4B #7E922C #2C9273
square
#402C92 #922C4B #7E922C #2C9273
split-complementary
#402C92 #92732C #4B922C
monochromatic
#171034 #2B1E63 #402C92 #553AC1 #7C67D1

Accessibility & contrast

On white

10.53
#402C92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#402C92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402C92
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402C92#FFFFFF#000000##FFFFFF
##402C921.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004295
Deuteranopia (green-blind)
#003C90
Tritanopia (blue-blind)
#1B465B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #402c92;
/* rgb */ color: rgb(64, 44, 146);
/* oklch */ color: oklch(38.4% 0.159 285.1);
Tailwind
colors: {
  custom: {
    50: '#7e67b3',
    500: '#402c92',
    950: '#000000',
  },
}
SCSS
$custom: #402c92;
$custom-light: #7e67b3;
$custom-dark: #000000;
JSON
{
  "hex": "#402c92",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 146
  },
  "hsl": {
    "h": 251.765,
    "s": 53.684,
    "l": 37.255
  },
  "oklch": {
    "l": 0.38363,
    "c": 0.15856,
    "h": 285.1
  },
  "luminance": 0.04967
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #402C92

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

Preview Lab → · Contrast checker → · Palette generator →

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