#402AB6#402AB6

#402AB6 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.6% C 0.205 H 279.8°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#402AB6
RGBrgb(64, 42, 182)
HSLhsl(249, 63%, 44%)
HSVhsv(249, 77%, 71%)
CMYKcmyk(64.8%, 76.9%, 0%, 28.6%)
CIE-LABlab(29.72, 49.39, -69.96)
CIE-LCHlch(29.72, 85.64, 305.22°)
OKLaboklab(41.6% 0.0349 -0.202)
OKLCHoklch(41.6% 0.205 279.8)
XYZxyz(11.3831, 6.1224, 44.8288)
Luminance0.0612 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402AB6 #A0B62A
analogous
#2A5AB6 #402AB6 #862AB6
triadic
#402AB6 #B6402A #2AB640
tetradic
#402AB6 #B62A5A #A0B62A #2AB686
square
#402AB6 #B62A5A #A0B62A #2AB686
split-complementary
#402AB6 #B6862A #5AB62A
monochromatic
#1D1353 #2F1F84 #402AB6 #5E48D5 #8A7AE0

Accessibility & contrast

On white

9.44
#402AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#402AB6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402AB6
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402AB6#FFFFFF#000000##FFFFFF
##402AB61.009.442.229.44
#FFFFFF9.441.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BBA
Deuteranopia (green-blind)
#0041B4
Tritanopia (blue-blind)
#00536F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #402ab6;
/* rgb */ color: rgb(64, 42, 182);
/* oklch */ color: oklch(41.6% 0.205 279.8);
Tailwind
colors: {
  custom: {
    50: '#8567cd',
    500: '#402ab6',
    950: '#000000',
  },
}
SCSS
$custom: #402ab6;
$custom-light: #8567cd;
$custom-dark: #000000;
JSON
{
  "hex": "#402ab6",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 182
  },
  "hsl": {
    "h": 249.429,
    "s": 62.5,
    "l": 43.922
  },
  "oklch": {
    "l": 0.41597,
    "c": 0.20496,
    "h": 279.8
  },
  "luminance": 0.06123
}

Semantic roles & 50–950 ramp

primary
#402AB6
secondary
#BBC873
accent
#E642CC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #402AB6

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

Preview Lab → · Contrast checker → · Palette generator →

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