#402ABD#402ABD

#402ABD is a dark, highly saturated blue. Relative luminance 0.064; OKLCH L 42.3% C 0.213 H 278.9°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#402ABD
RGBrgb(64, 42, 189)
HSLhsl(249, 64%, 45%)
HSVhsv(249, 78%, 74%)
CMYKcmyk(66.1%, 77.8%, 0%, 25.9%)
CIE-LABlab(30.45, 51.50, -72.91)
CIE-LCHlch(30.45, 89.26, 305.24°)
OKLaboklab(42.32% 0.0331 -0.2105)
OKLCHoklch(42.32% 0.213 278.9)
XYZxyz(12.1247, 6.4190, 48.7343)
Luminance0.0642 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402ABD #A7BD2A
analogous
#2A5DBD #402ABD #8A2ABD
triadic
#402ABD #BD402A #2ABD40
tetradic
#402ABD #BD2A5D #A7BD2A #2ABD8A
square
#402ABD #BD2A5D #A7BD2A #2ABD8A
split-complementary
#402ABD #BD8A2A #5DBD2A
monochromatic
#1E1459 #2F1F8B #402ABD #624DD7 #8E7FE3

Accessibility & contrast

On white

9.19
#402ABD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#402ABD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402ABD
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402ABD#FFFFFF#000000##FFFFFF
##402ABD1.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #402abd;
/* rgb */ color: rgb(64, 42, 189);
/* oklch */ color: oklch(42.3% 0.213 278.9);
Tailwind
colors: {
  custom: {
    50: '#8668d2',
    500: '#402abd',
    950: '#000000',
  },
}
SCSS
$custom: #402abd;
$custom-light: #8668d2;
$custom-dark: #000000;
JSON
{
  "hex": "#402abd",
  "rgb": {
    "r": 64,
    "g": 42,
    "b": 189
  },
  "hsl": {
    "h": 248.98,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.42322,
    "c": 0.21314,
    "h": 278.9
  },
  "luminance": 0.0642
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #402ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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