#402690#402690

#402690 is a dark, vivid violet. Relative luminance 0.045; OKLCH L 37.3% C 0.163 H 286.8°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#402690
RGBrgb(64, 38, 144)
HSLhsl(255, 58%, 36%)
HSVhsv(255, 74%, 56%)
CMYKcmyk(55.6%, 73.6%, 0%, 43.5%)
CIE-LABlab(25.23, 39.95, -54.31)
CIE-LCHlch(25.23, 67.42, 306.34°)
OKLaboklab(37.3% 0.0472 -0.1562)
OKLCHoklch(37.3% 0.163 286.8)
XYZxyz(7.8400, 4.4894, 26.8336)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402690 #769026
analogous
#264190 #402690 #752690
triadic
#402690 #904026 #269040
tetradic
#402690 #902641 #769026 #269075
square
#402690 #902641 #769026 #269075
split-complementary
#402690 #907526 #419026
monochromatic
#150C2F #2A1960 #402690 #5633C0 #7A5CD4

Accessibility & contrast

On white

11.06
#402690 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#402690 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402690
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402690#FFFFFF#000000##FFFFFF
##4026901.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#00398E
Tritanopia (blue-blind)
#1E4258
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #402690;
/* rgb */ color: rgb(64, 38, 144);
/* oklch */ color: oklch(37.3% 0.163 286.8);
Tailwind
colors: {
  custom: {
    50: '#7e63b1',
    500: '#402690',
    950: '#000000',
  },
}
SCSS
$custom: #402690;
$custom-light: #7e63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#402690",
  "rgb": {
    "r": 64,
    "g": 38,
    "b": 144
  },
  "hsl": {
    "h": 254.717,
    "s": 58.242,
    "l": 35.686
  },
  "oklch": {
    "l": 0.373,
    "c": 0.16315,
    "h": 286.8
  },
  "luminance": 0.0449
}

Semantic roles & 50–950 ramp

primary
#402690
secondary
#A1B959
accent
#E146BB
background
#F8F6FB
surface
#EFEBF6
border
#CAC6D0
text
#0B0511
muted
#7C7A80

Preview Lab

Preview with #402690

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

Preview Lab → · Contrast checker → · Palette generator →

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