#402BB8#402BB8

#402BB8 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.9% C 0.206 H 279.4°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#402BB8
RGBrgb(64, 43, 184)
HSLhsl(249, 62%, 45%)
HSVhsv(249, 77%, 72%)
CMYKcmyk(65.2%, 76.6%, 0%, 27.8%)
CIE-LABlab(30.10, 49.49, -70.52)
CIE-LCHlch(30.10, 86.15, 305.06°)
OKLaboklab(41.93% 0.0339 -0.2036)
OKLCHoklch(41.93% 0.206 279.4)
XYZxyz(11.6272, 6.2775, 45.9371)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BB8 #A3B82B
analogous
#2B5DB8 #402BB8 #872BB8
triadic
#402BB8 #B8402B #2BB840
tetradic
#402BB8 #B82B5D #A3B82B #2BB887
square
#402BB8 #B82B5D #A3B82B #2BB887
split-complementary
#402BB8 #B8872B #5DB82B
monochromatic
#1D1455 #2F1F86 #402BB8 #604BD5 #8C7DE1

Accessibility & contrast

On white

9.31
#402BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#402BB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BB8
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BB8#FFFFFF#000000##FFFFFF
##402BB81.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CBC
Deuteranopia (green-blind)
#0041B5
Tritanopia (blue-blind)
#005470
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #402bb8;
/* rgb */ color: rgb(64, 43, 184);
/* oklch */ color: oklch(41.9% 0.206 279.4);
Tailwind
colors: {
  custom: {
    50: '#8568cf',
    500: '#402bb8',
    950: '#000000',
  },
}
SCSS
$custom: #402bb8;
$custom-light: #8568cf;
$custom-dark: #000000;
JSON
{
  "hex": "#402bb8",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 184
  },
  "hsl": {
    "h": 248.936,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.41927,
    "c": 0.20638,
    "h": 279.4
  },
  "luminance": 0.06278
}

Semantic roles & 50–950 ramp

primary
#402BB8
secondary
#BDC976
accent
#E543CD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #402BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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