#5751EB#5751EB

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

Color values

HEX#5751EB
RGBrgb(87, 81, 235)
HSLhsl(242, 79%, 62%)
HSVhsv(242, 66%, 92%)
CMYKcmyk(63%, 65.5%, 0%, 7.8%)
CIE-LABlab(44.10, 47.31, -76.94)
CIE-LCHlch(44.10, 90.32, 301.59°)
OKLaboklab(53.79% 0.0292 -0.2218)
OKLCHoklch(53.79% 0.224 277.5)
XYZxyz(21.8635, 13.9075, 80.1134)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751EB #E5EB51
analogous
#5198EB #5751EB #A451EB
triadic
#5751EB #EB5751 #51EB57
tetradic
#5751EB #EB5198 #E5EB51 #51EBA4
square
#5751EB #EB5198 #E5EB51 #51EBA4
split-complementary
#5751EB #EBA451 #98EB51
monochromatic
#1A14AE #221AE5 #5751EB #8C88F1 #C1BFF8

Accessibility & contrast

On white

5.55
#5751EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5751EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751EB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751EB#FFFFFF#000000##FFFFFF
##5751EB1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5751eb;
/* rgb */ color: rgb(87, 81, 235);
/* oklch */ color: oklch(53.8% 0.224 277.5);
Tailwind
colors: {
  custom: {
    50: '#9683f3',
    500: '#5751eb',
    950: '#000000',
  },
}
SCSS
$custom: #5751eb;
$custom-light: #9683f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5751eb",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 235
  },
  "hsl": {
    "h": 242.338,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.53786,
    "c": 0.22376,
    "h": 277.5
  },
  "luminance": 0.13909
}

Semantic roles & 50–950 ramp

primary
#5751EB
secondary
#E6E8B0
accent
#DC0AD4
background
#FAF8FF
surface
#F3EFFE
border
#CDCAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5751EB

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

Preview Lab → · Contrast checker → · Palette generator →

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