#402ABE#402ABE

#402ABE is a dark, highly saturated blue. Relative luminance 0.065; OKLCH L 42.4% C 0.214 H 278.8°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#402ABE
RGBrgb(64, 42, 190)
HSLhsl(249, 64%, 45%)
HSVhsv(249, 78%, 75%)
CMYKcmyk(66.3%, 77.9%, 0%, 25.5%)
CIE-LABlab(30.55, 51.80, -73.33)
CIE-LCHlch(30.55, 89.78, 305.24°)
OKLaboklab(42.43% 0.0329 -0.2118)
OKLCHoklch(42.43% 0.214 278.8)
XYZxyz(12.2336, 6.4626, 49.3079)
Luminance0.0646 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402ABE #A8BE2A
analogous
#2A5EBE #402ABE #8A2ABE
triadic
#402ABE #BE402A #2ABE40
tetradic
#402ABE #BE2A5E #A8BE2A #2ABE8A
square
#402ABE #BE2A5E #A8BE2A #2ABE8A
split-complementary
#402ABE #BE8A2A #5EBE2A
monochromatic
#1E145A #2F1F8C #402ABE #624DD8 #8E80E3

Accessibility & contrast

On white

9.16
#402ABE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#402ABE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402ABE
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402ABE#FFFFFF#000000##FFFFFF
##402ABE1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC2
Deuteranopia (green-blind)
#0042BB
Tritanopia (blue-blind)
#005673
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #402abe;
/* rgb */ color: rgb(64, 42, 190);
/* oklch */ color: oklch(42.4% 0.214 278.8);
Tailwind
colors: {
  custom: {
    50: '#8668d3',
    500: '#402abe',
    950: '#000000',
  },
}
SCSS
$custom: #402abe;
$custom-light: #8668d3;
$custom-dark: #000000;
JSON
{
  "hex": "#402abe",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 190
  },
  "hsl": {
    "h": 248.919,
    "s": 63.793,
    "l": 45.49
  },
  "oklch": {
    "l": 0.42426,
    "c": 0.2143,
    "h": 278.8
  },
  "luminance": 0.06464
}

Semantic roles & 50–950 ramp

primary
#402ABE
secondary
#BFCB78
accent
#E741CE
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #402ABE

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

Preview Lab → · Contrast checker → · Palette generator →

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