#5651EB#5651EB

#5651EB is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.7% C 0.224 H 277.2°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5651EB
RGBrgb(86, 81, 235)
HSLhsl(242, 79%, 62%)
HSVhsv(242, 66%, 92%)
CMYKcmyk(63.4%, 65.5%, 0%, 7.8%)
CIE-LABlab(44.03, 47.17, -77.05)
CIE-LCHlch(44.03, 90.34, 301.47°)
OKLaboklab(53.72% 0.028 -0.2222)
OKLCHoklch(53.72% 0.224 277.2)
XYZxyz(21.7707, 13.8597, 80.1091)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5651EB #E6EB51
analogous
#5199EB #5651EB #A351EB
triadic
#5651EB #EB5651 #51EB56
tetradic
#5651EB #EB5199 #E6EB51 #51EBA3
square
#5651EB #EB5199 #E6EB51 #51EBA3
split-complementary
#5651EB #EBA351 #99EB51
monochromatic
#1914AE #211AE5 #5651EB #8B88F1 #C1BFF8

Accessibility & contrast

On white

5.57
#5651EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5651EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5651EB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5651EB#FFFFFF#000000##FFFFFF
##5651EB1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FF0
Deuteranopia (green-blind)
#0061E8
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5651eb;
/* rgb */ color: rgb(86, 81, 235);
/* oklch */ color: oklch(53.7% 0.224 277.2);
Tailwind
colors: {
  custom: {
    50: '#9683f3',
    500: '#5651eb',
    950: '#000000',
  },
}
SCSS
$custom: #5651eb;
$custom-light: #9683f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5651eb",
  "rgb": {
    "r": 86,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 241.948,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.53719,
    "c": 0.22397,
    "h": 277.2
  },
  "luminance": 0.13861
}

Semantic roles & 50–950 ramp

primary
#5651EB
secondary
#E6E8B0
accent
#DC0AD5
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5651EB

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

Preview Lab → · Contrast checker → · Palette generator →

#5651EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva