#402BB1#402BB1

#402BB1 is a dark, vivid blue. Relative luminance 0.060; OKLCH L 41.2% C 0.198 H 280.4°. Best body text is #FFFFFF at 9.55:1 contrast (WCAG AA passes).

Color values

HEX#402BB1
RGBrgb(64, 43, 177)
HSLhsl(249, 61%, 43%)
HSVhsv(249, 76%, 69%)
CMYKcmyk(63.8%, 75.7%, 0%, 30.6%)
CIE-LABlab(29.39, 47.36, -67.52)
CIE-LCHlch(29.39, 82.48, 305.05°)
OKLaboklab(41.21% 0.0356 -0.1949)
OKLCHoklch(41.21% 0.198 280.4)
XYZxyz(10.9115, 5.9912, 42.1679)
Luminance0.0599 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BB1 #9CB12B
analogous
#2B59B1 #402BB1 #832BB1
triadic
#402BB1 #B1402B #2BB140
tetradic
#402BB1 #B12B59 #9CB12B #2BB183
square
#402BB1 #B12B59 #9CB12B #2BB183
split-complementary
#402BB1 #B1832B #59B12B
monochromatic
#1C134F #2E1F80 #402BB1 #5D47D2 #8878DE

Accessibility & contrast

On white

9.55
#402BB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#402BB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BB1
9.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BB1#FFFFFF#000000##FFFFFF
##402BB11.009.552.209.55
#FFFFFF9.551.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB5
Deuteranopia (green-blind)
#0040AF
Tritanopia (blue-blind)
#00526C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #402bb1;
/* rgb */ color: rgb(64, 43, 177);
/* oklch */ color: oklch(41.2% 0.198 280.4);
Tailwind
colors: {
  custom: {
    50: '#8467ca',
    500: '#402bb1',
    950: '#000000',
  },
}
SCSS
$custom: #402bb1;
$custom-light: #8467ca;
$custom-dark: #000000;
JSON
{
  "hex": "#402bb1",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 177
  },
  "hsl": {
    "h": 249.403,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.41214,
    "c": 0.19808,
    "h": 280.4
  },
  "luminance": 0.05992
}

Semantic roles & 50–950 ramp

primary
#402BB1
secondary
#B9C672
accent
#E444CB
background
#F8F6FC
surface
#F0EBF8
border
#CBC6D1
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402BB1

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

Preview Lab → · Contrast checker → · Palette generator →

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