#402BB5#402BB5

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

Color values

HEX#402BB5
RGBrgb(64, 43, 181)
HSLhsl(249, 62%, 44%)
HSVhsv(249, 76%, 71%)
CMYKcmyk(64.6%, 76.2%, 0%, 29%)
CIE-LABlab(29.80, 48.58, -69.24)
CIE-LCHlch(29.80, 84.58, 305.05°)
OKLaboklab(41.62% 0.0346 -0.1999)
OKLCHoklch(41.62% 0.203 279.8)
XYZxyz(11.3161, 6.1530, 44.2984)
Luminance0.0615 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BB5 #A0B52B
analogous
#2B5BB5 #402BB5 #852BB5
triadic
#402BB5 #B5402B #2BB540
tetradic
#402BB5 #B52B5B #A0B52B #2BB585
square
#402BB5 #B52B5B #A0B52B #2BB585
split-complementary
#402BB5 #B5852B #5BB52B
monochromatic
#1D1452 #2F1F84 #402BB5 #5E49D4 #8A7BE0

Accessibility & contrast

On white

9.41
#402BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#402BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BB5
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BB5#FFFFFF#000000##FFFFFF
##402BB51.009.412.239.41
#FFFFFF9.411.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB9
Deuteranopia (green-blind)
#0041B3
Tritanopia (blue-blind)
#00536E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #402bb5;
/* rgb */ color: rgb(64, 43, 181);
/* oklch */ color: oklch(41.6% 0.203 279.8);
Tailwind
colors: {
  custom: {
    50: '#8468cc',
    500: '#402bb5',
    950: '#000000',
  },
}
SCSS
$custom: #402bb5;
$custom-light: #8468cc;
$custom-dark: #000000;
JSON
{
  "hex": "#402bb5",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 249.13,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4162,
    "c": 0.20284,
    "h": 279.8
  },
  "luminance": 0.06154
}

Semantic roles & 50–950 ramp

primary
#402BB5
secondary
#BBC874
accent
#E543CC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #402BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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