#402CBD#402CBD

#402CBD is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 42.6% C 0.211 H 278.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#402CBD
RGBrgb(64, 44, 189)
HSLhsl(248, 62%, 46%)
HSVhsv(248, 77%, 74%)
CMYKcmyk(66.1%, 76.7%, 0%, 25.9%)
CIE-LABlab(30.79, 50.50, -72.33)
CIE-LCHlch(30.79, 88.22, 304.92°)
OKLaboklab(42.57% 0.032 -0.2089)
OKLCHoklch(42.57% 0.211 278.7)
XYZxyz(12.1974, 6.5645, 48.7585)
Luminance0.0657 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CBD #A9BD2C
analogous
#2C60BD #402CBD #882CBD
triadic
#402CBD #BD402C #2CBD40
tetradic
#402CBD #BD2C60 #A9BD2C #2CBD88
square
#402CBD #BD2C60 #A9BD2C #2CBD88
split-complementary
#402CBD #BD882C #60BD2C
monochromatic
#1E155A #2F208B #402CBD #6250D6 #8F82E2

Accessibility & contrast

On white

9.08
#402CBD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#402CBD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CBD
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CBD#FFFFFF#000000##FFFFFF
##402CBD1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EC1
Deuteranopia (green-blind)
#0043BA
Tritanopia (blue-blind)
#005773
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #402cbd;
/* rgb */ color: rgb(64, 44, 189);
/* oklch */ color: oklch(42.6% 0.211 278.7);
Tailwind
colors: {
  custom: {
    50: '#8669d2',
    500: '#402cbd',
    950: '#000000',
  },
}
SCSS
$custom: #402cbd;
$custom-light: #8669d2;
$custom-dark: #000000;
JSON
{
  "hex": "#402cbd",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 248.276,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.42565,
    "c": 0.21134,
    "h": 278.7
  },
  "luminance": 0.06565
}

Semantic roles & 50–950 ramp

primary
#402CBD
secondary
#C0CB7A
accent
#E542CF
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0614
muted
#7E7A83

Preview Lab

Preview with #402CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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