#5751E5#5751E5

#5751E5 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.3% C 0.216 H 277.9°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#5751E5
RGBrgb(87, 81, 229)
HSLhsl(242, 74%, 61%)
HSVhsv(242, 65%, 90%)
CMYKcmyk(62%, 64.6%, 0%, 10.2%)
CIE-LABlab(43.60, 45.41, -74.35)
CIE-LCHlch(43.60, 87.12, 301.41°)
OKLaboklab(53.27% 0.0298 -0.2143)
OKLCHoklch(53.27% 0.216 277.9)
XYZxyz(21.0112, 13.5666, 75.6249)
Luminance0.1357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751E5 #DFE551
analogous
#5195E5 #5751E5 #A151E5
triadic
#5751E5 #E55751 #51E557
tetradic
#5751E5 #E55195 #DFE551 #51E5A1
square
#5751E5 #E55195 #DFE551 #51E5A1
split-complementary
#5751E5 #E5A151 #95E551
monochromatic
#1E18A3 #2820D8 #5751E5 #8A86ED #BEBBF5

Accessibility & contrast

On white

5.65
#5751E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5751E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751E5
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751E5#FFFFFF#000000##FFFFFF
##5751E51.005.653.715.65
#FFFFFF5.651.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DEA
Deuteranopia (green-blind)
#0061E2
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5751e5;
/* rgb */ color: rgb(87, 81, 229);
/* oklch */ color: oklch(53.3% 0.216 277.9);
Tailwind
colors: {
  custom: {
    50: '#9583ee',
    500: '#5751e5',
    950: '#000000',
  },
}
SCSS
$custom: #5751e5;
$custom-light: #9583ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5751e5",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 242.432,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53274,
    "c": 0.21634,
    "h": 277.9
  },
  "luminance": 0.13568
}

Semantic roles & 50–950 ramp

primary
#5751E5
secondary
#E3E5AD
accent
#D60FCE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A17
muted
#7E7C85

Preview Lab

Preview with #5751E5

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

Preview Lab → · Contrast checker → · Palette generator →

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