#402490#402490

#402490 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.0% C 0.165 H 287.2°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#402490
RGBrgb(64, 36, 144)
HSLhsl(256, 60%, 35%)
HSVhsv(256, 75%, 56%)
CMYKcmyk(55.6%, 75%, 0%, 43.5%)
CIE-LABlab(24.84, 41.03, -54.94)
CIE-LCHlch(24.84, 68.57, 306.75°)
OKLaboklab(37.03% 0.0489 -0.158)
OKLCHoklch(37.03% 0.165 287.2)
XYZxyz(7.7778, 4.3650, 26.8128)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402490 #749024
analogous
#243E90 #402490 #762490
triadic
#402490 #904024 #249040
tetradic
#402490 #90243E #749024 #249076
square
#402490 #90243E #749024 #249076
split-complementary
#402490 #907624 #3E9024
monochromatic
#140C2E #2A185F #402490 #5630C1 #7959D5

Accessibility & contrast

On white

11.21
#402490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #402490
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402490#FFFFFF#000000##FFFFFF
##4024901.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.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: #402490;
/* rgb */ color: rgb(64, 36, 144);
/* oklch */ color: oklch(37.0% 0.165 287.2);
Tailwind
colors: {
  custom: {
    50: '#7e62b2',
    500: '#402490',
    950: '#000000',
  },
}
SCSS
$custom: #402490;
$custom-light: #7e62b2;
$custom-dark: #000000;
JSON
{
  "hex": "#402490",
  "rgb": {
    "r": 64,
    "g": 36,
    "b": 144
  },
  "hsl": {
    "h": 255.556,
    "s": 60,
    "l": 35.294
  },
  "oklch": {
    "l": 0.37028,
    "c": 0.16541,
    "h": 287.2
  },
  "luminance": 0.04365
}

Semantic roles & 50–950 ramp

primary
#402490
secondary
#A0BA56
accent
#E345BA
background
#F8F5FB
surface
#EFEAF6
border
#CAC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #402490

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

Preview Lab → · Contrast checker → · Palette generator →

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