#402984#402984

#402984 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.6% C 0.144 H 288.8°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#402984
RGBrgb(64, 41, 132)
HSLhsl(255, 53%, 34%)
HSVhsv(255, 69%, 52%)
CMYKcmyk(51.5%, 68.9%, 0%, 48.2%)
CIE-LABlab(24.77, 34.56, -47.58)
CIE-LCHlch(24.77, 58.81, 305.99°)
OKLaboklab(36.64% 0.0466 -0.1365)
OKLCHoklch(36.64% 0.144 288.8)
XYZxyz(7.0709, 4.3415, 22.2907)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402984 #6D8429
analogous
#294084 #402984 #6E2984
triadic
#402984 #844029 #298440
tetradic
#402984 #842940 #6D8429 #29846E
square
#402984 #842940 #6D8429 #29846E
split-complementary
#402984 #846E29 #408429
monochromatic
#130C27 #291A55 #402984 #5738B3 #785BCC

Accessibility & contrast

On white

11.24
#402984 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#402984 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402984
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402984#FFFFFF#000000##FFFFFF
##4029841.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003882
Tritanopia (blue-blind)
#284053
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #402984;
/* rgb */ color: rgb(64, 41, 132);
/* oklch */ color: oklch(36.6% 0.144 288.8);
Tailwind
colors: {
  custom: {
    50: '#7c64a9',
    500: '#402984',
    950: '#000000',
  },
}
SCSS
$custom: #402984;
$custom-light: #7c64a9;
$custom-dark: #000000;
JSON
{
  "hex": "#402984",
  "rgb": {
    "r": 64,
    "g": 41,
    "b": 132
  },
  "hsl": {
    "h": 255.165,
    "s": 52.601,
    "l": 33.922
  },
  "oklch": {
    "l": 0.36641,
    "c": 0.14419,
    "h": 288.8
  },
  "luminance": 0.04342
}

Semantic roles & 50–950 ramp

primary
#402984
secondary
#9BB257
accent
#DC4CB8
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #402984

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

Preview Lab → · Contrast checker → · Palette generator →

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