#5751E8#5751E8

#5751E8 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.5% C 0.220 H 277.7°. Best body text is #FFFFFF at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5751E8
RGBrgb(87, 81, 232)
HSLhsl(242, 77%, 61%)
HSVhsv(242, 65%, 91%)
CMYKcmyk(62.5%, 65.1%, 0%, 9%)
CIE-LABlab(43.85, 46.36, -75.65)
CIE-LCHlch(43.85, 88.72, 301.50°)
OKLaboklab(53.53% 0.0295 -0.2181)
OKLCHoklch(53.53% 0.22 277.7)
XYZxyz(21.4337, 13.7356, 77.8500)
Luminance0.1374 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751E8 #E2E851
analogous
#5197E8 #5751E8 #A351E8
triadic
#5751E8 #E85751 #51E857
tetradic
#5751E8 #E85197 #E2E851 #51E8A3
square
#5751E8 #E85197 #E2E851 #51E8A3
split-complementary
#5751E8 #E8A351 #97E851
monochromatic
#1C16A8 #251DDE #5751E8 #8B87EF #BFBDF6

Accessibility & contrast

On white

5.60
#5751E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5751E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751E8
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751E8#FFFFFF#000000##FFFFFF
##5751E81.005.603.755.60
#FFFFFF5.601.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EED
Deuteranopia (green-blind)
#0061E5
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5751e8;
/* rgb */ color: rgb(87, 81, 232);
/* oklch */ color: oklch(53.5% 0.220 277.7);
Tailwind
colors: {
  custom: {
    50: '#9683f0',
    500: '#5751e8',
    950: '#000000',
  },
}
SCSS
$custom: #5751e8;
$custom-light: #9683f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5751e8",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 232
  },
  "hsl": {
    "h": 242.384,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.5353,
    "c": 0.22006,
    "h": 277.7
  },
  "luminance": 0.13737
}

Semantic roles & 50–950 ramp

primary
#5751E8
secondary
#E4E7AE
accent
#D90DD1
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5751E8

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

Preview Lab → · Contrast checker → · Palette generator →

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