#402BB3#402BB3

#402BB3 is a dark, highly saturated blue. Relative luminance 0.061; OKLCH L 41.4% C 0.200 H 280.1°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#402BB3
RGBrgb(64, 43, 179)
HSLhsl(249, 61%, 44%)
HSVhsv(249, 76%, 70%)
CMYKcmyk(64.2%, 76%, 0%, 29.8%)
CIE-LABlab(29.59, 47.97, -68.38)
CIE-LCHlch(29.59, 83.53, 305.05°)
OKLaboklab(41.42% 0.0351 -0.1974)
OKLCHoklch(41.42% 0.2 280.1)
XYZxyz(11.1123, 6.0715, 43.2254)
Luminance0.0607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BB3 #9EB32B
analogous
#2B5AB3 #402BB3 #842BB3
triadic
#402BB3 #B3402B #2BB340
tetradic
#402BB3 #B32B5A #9EB32B #2BB384
square
#402BB3 #B32B5A #9EB32B #2BB384
split-complementary
#402BB3 #B3842B #5AB32B
monochromatic
#1D1350 #2E1F82 #402BB3 #5E48D3 #8979DF

Accessibility & contrast

On white

9.48
#402BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#402BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BB3
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BB3#FFFFFF#000000##FFFFFF
##402BB31.009.482.219.48
#FFFFFF9.481.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BB7
Deuteranopia (green-blind)
#0040B1
Tritanopia (blue-blind)
#00526D
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #402bb3;
/* rgb */ color: rgb(64, 43, 179);
/* oklch */ color: oklch(41.4% 0.200 280.1);
Tailwind
colors: {
  custom: {
    50: '#8468cb',
    500: '#402bb3',
    950: '#000000',
  },
}
SCSS
$custom: #402bb3;
$custom-light: #8468cb;
$custom-dark: #000000;
JSON
{
  "hex": "#402bb3",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 179
  },
  "hsl": {
    "h": 249.265,
    "s": 61.261,
    "l": 43.529
  },
  "oklch": {
    "l": 0.41417,
    "c": 0.20048,
    "h": 280.1
  },
  "luminance": 0.06072
}

Semantic roles & 50–950 ramp

primary
#402BB3
secondary
#BAC773
accent
#E443CC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0613
muted
#7D7A82

Preview Lab

Preview with #402BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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