#402AB4#402AB4

#402AB4 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.4% C 0.203 H 280.1°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#402AB4
RGBrgb(64, 42, 180)
HSLhsl(250, 62%, 44%)
HSVhsv(250, 77%, 71%)
CMYKcmyk(64.4%, 76.7%, 0%, 29.4%)
CIE-LABlab(29.51, 48.79, -69.11)
CIE-LCHlch(29.51, 84.59, 305.22°)
OKLaboklab(41.39% 0.0355 -0.1995)
OKLCHoklch(41.39% 0.203 280.1)
XYZxyz(11.1779, 6.0403, 43.7480)
Luminance0.0604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402AB4 #9EB42A
analogous
#2A59B4 #402AB4 #852AB4
triadic
#402AB4 #B4402A #2AB440
tetradic
#402AB4 #B42A59 #9EB42A #2AB485
square
#402AB4 #B42A59 #9EB42A #2AB485
split-complementary
#402AB4 #B4852A #59B42A
monochromatic
#1D1351 #2E1E82 #402AB4 #5E47D4 #8979E0

Accessibility & contrast

On white

9.51
#402AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#402AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402AB4
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402AB4#FFFFFF#000000##FFFFFF
##402AB41.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#0040B2
Tritanopia (blue-blind)
#00526E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #402ab4;
/* rgb */ color: rgb(64, 42, 180);
/* oklch */ color: oklch(41.4% 0.203 280.1);
Tailwind
colors: {
  custom: {
    50: '#8467cc',
    500: '#402ab4',
    950: '#000000',
  },
}
SCSS
$custom: #402ab4;
$custom-light: #8467cc;
$custom-dark: #000000;
JSON
{
  "hex": "#402ab4",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 180
  },
  "hsl": {
    "h": 249.565,
    "s": 62.162,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41392,
    "c": 0.20261,
    "h": 280.1
  },
  "luminance": 0.06041
}

Semantic roles & 50–950 ramp

primary
#402AB4
secondary
#BAC872
accent
#E543CB
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #402AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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