#402BE2#402BE2

#402BE2 is a mid, highly saturated blue. Relative luminance 0.083; OKLCH L 46.4% C 0.254 H 275.1°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#402BE2
RGBrgb(64, 43, 226)
HSLhsl(247, 76%, 53%)
HSVhsv(247, 81%, 89%)
CMYKcmyk(71.7%, 81%, 0%, 11.4%)
CIE-LABlab(34.61, 61.89, -87.51)
CIE-LCHlch(34.61, 107.18, 305.27°)
OKLaboklab(46.39% 0.0228 -0.253)
OKLCHoklch(46.39% 0.254 275.1)
XYZxyz(16.7012, 8.3071, 72.6600)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#402BE2 #CDE22B
analogous
#2B72E2 #402BE2 #9B2BE2
triadic
#402BE2 #E2402B #2BE240
tetradic
#402BE2 #E22B72 #CDE22B #2BE29B
square
#402BE2 #E22B72 #CDE22B #2BE29B
split-complementary
#402BE2 #E29B2B #72E22B
monochromatic
#1E1281 #2B19B7 #402BE2 #7161E9 #A197F1

Accessibility & contrast

On white

7.89
#402BE2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#402BE2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #402BE2
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##402BE2#FFFFFF#000000##FFFFFF
##402BE21.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059E7
Deuteranopia (green-blind)
#0049DF
Tritanopia (blue-blind)
#006588
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #402be2;
/* rgb */ color: rgb(64, 43, 226);
/* oklch */ color: oklch(46.4% 0.254 275.1);
Tailwind
colors: {
  custom: {
    50: '#8e6aed',
    500: '#402be2',
    950: '#000000',
  },
}
SCSS
$custom: #402be2;
$custom-light: #8e6aed;
$custom-dark: #000000;
JSON
{
  "hex": "#402be2",
  "rgb": {
    "r": 64,
    "g": 43,
    "b": 226
  },
  "hsl": {
    "h": 246.885,
    "s": 75.934,
    "l": 52.745
  },
  "oklch": {
    "l": 0.46392,
    "c": 0.25401,
    "h": 275.1
  },
  "luminance": 0.08309
}

Semantic roles & 50–950 ramp

primary
#402BE2
secondary
#D3DC8D
accent
#F335DD
background
#F9F6FE
surface
#F2EBFD
border
#CCC6D5
text
#0E0717
muted
#7E7A85

Preview Lab

Preview with #402BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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