#402AA9#402AA9

#402AA9 is a dark, vivid violet. Relative luminance 0.056; OKLCH L 40.3% C 0.189 H 281.6°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#402AA9
RGBrgb(64, 42, 169)
HSLhsl(250, 60%, 41%)
HSVhsv(250, 75%, 66%)
CMYKcmyk(62.1%, 75.1%, 0%, 33.7%)
CIE-LABlab(28.41, 45.43, -64.35)
CIE-LCHlch(28.41, 78.77, 305.23°)
OKLaboklab(40.28% 0.0382 -0.1856)
OKLCHoklch(40.28% 0.189 281.6)
XYZxyz(10.1015, 5.6098, 38.0789)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402AA9 #93A92A
analogous
#2A54A9 #402AA9 #802AA9
triadic
#402AA9 #A9402A #2AA940
tetradic
#402AA9 #A92A54 #93A92A #2AA980
square
#402AA9 #A92A54 #93A92A #2AA980
split-complementary
#402AA9 #A9802A #54A92A
monochromatic
#1B1247 #2D1E78 #402AA9 #5941D0 #8472DC

Accessibility & contrast

On white

9.90
#402AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#402AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402AA9
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402AA9#FFFFFF#000000##FFFFFF
##402AA91.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#003EA7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #402aa9;
/* rgb */ color: rgb(64, 42, 169);
/* oklch */ color: oklch(40.3% 0.189 281.6);
Tailwind
colors: {
  custom: {
    50: '#8266c4',
    500: '#402aa9',
    950: '#000000',
  },
}
SCSS
$custom: #402aa9;
$custom-light: #8266c4;
$custom-dark: #000000;
JSON
{
  "hex": "#402aa9",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 250.394,
    "s": 60.19,
    "l": 41.373
  },
  "oklch": {
    "l": 0.4028,
    "c": 0.18947,
    "h": 281.6
  },
  "luminance": 0.0561
}

Semantic roles & 50–950 ramp

primary
#402AA9
secondary
#B4C36C
accent
#E344C8
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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