#402ABA#402ABA

#402ABA is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 42.0% C 0.210 H 279.3°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#402ABA
RGBrgb(64, 42, 186)
HSLhsl(249, 63%, 45%)
HSVhsv(249, 77%, 73%)
CMYKcmyk(65.6%, 77.4%, 0%, 27.1%)
CIE-LABlab(30.13, 50.60, -71.65)
CIE-LCHlch(30.13, 87.72, 305.23°)
OKLaboklab(42.01% 0.0339 -0.2069)
OKLCHoklch(42.01% 0.21 279.3)
XYZxyz(11.8024, 6.2901, 47.0370)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402ABA #A4BA2A
analogous
#2A5CBA #402ABA #882ABA
triadic
#402ABA #BA402A #2ABA40
tetradic
#402ABA #BA2A5C #A4BA2A #2ABA88
square
#402ABA #BA2A5C #A4BA2A #2ABA88
split-complementary
#402ABA #BA882A #5CBA2A
monochromatic
#1E1356 #2F1F88 #402ABA #604BD6 #8C7DE2

Accessibility & contrast

On white

9.30
#402ABA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#402ABA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402ABA
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402ABA#FFFFFF#000000##FFFFFF
##402ABA1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBE
Deuteranopia (green-blind)
#0041B7
Tritanopia (blue-blind)
#005571
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #402aba;
/* rgb */ color: rgb(64, 42, 186);
/* oklch */ color: oklch(42.0% 0.210 279.3);
Tailwind
colors: {
  custom: {
    50: '#8567d0',
    500: '#402aba',
    950: '#000000',
  },
}
SCSS
$custom: #402aba;
$custom-light: #8567d0;
$custom-dark: #000000;
JSON
{
  "hex": "#402aba",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 186
  },
  "hsl": {
    "h": 249.167,
    "s": 63.158,
    "l": 44.706
  },
  "oklch": {
    "l": 0.4201,
    "c": 0.20965,
    "h": 279.3
  },
  "luminance": 0.06291
}

Semantic roles & 50–950 ramp

primary
#402ABA
secondary
#BDCA76
accent
#E642CD
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0614
muted
#7D7A83

Preview Lab

Preview with #402ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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