#402CB5#402CB5

#402CB5 is a dark, highly saturated blue. Relative luminance 0.062; OKLCH L 41.7% C 0.202 H 279.7°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#402CB5
RGBrgb(64, 44, 181)
HSLhsl(249, 61%, 44%)
HSVhsv(249, 76%, 71%)
CMYKcmyk(64.6%, 75.7%, 0%, 29%)
CIE-LABlab(29.98, 48.06, -68.94)
CIE-LCHlch(29.98, 84.04, 304.88°)
OKLaboklab(41.75% 0.034 -0.199)
OKLCHoklch(41.75% 0.202 279.7)
XYZxyz(11.3529, 6.2266, 44.3107)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402CB5 #A1B52C
analogous
#2C5DB5 #402CB5 #852CB5
triadic
#402CB5 #B5402C #2CB540
tetradic
#402CB5 #B52C5D #A1B52C #2CB585
square
#402CB5 #B52C5D #A1B52C #2CB585
split-complementary
#402CB5 #B5852C #5DB52C
monochromatic
#1D1453 #2F2084 #402CB5 #5F4BD3 #8B7CDF

Accessibility & contrast

On white

9.35
#402CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#402CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402CB5
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402CB5#FFFFFF#000000##FFFFFF
##402CB51.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CB9
Deuteranopia (green-blind)
#0041B3
Tritanopia (blue-blind)
#00546F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #402cb5;
/* rgb */ color: rgb(64, 44, 181);
/* oklch */ color: oklch(41.7% 0.202 279.7);
Tailwind
colors: {
  custom: {
    50: '#8468cc',
    500: '#402cb5',
    950: '#000000',
  },
}
SCSS
$custom: #402cb5;
$custom-light: #8468cc;
$custom-dark: #000000;
JSON
{
  "hex": "#402cb5",
  "rgb": {
    "r": 64,
    "g": 44,
    "b": 181
  },
  "hsl": {
    "h": 248.759,
    "s": 60.889,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41748,
    "c": 0.20189,
    "h": 279.7
  },
  "luminance": 0.06228
}

Semantic roles & 50–950 ramp

primary
#402CB5
secondary
#BCC875
accent
#E444CD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #402CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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