#5771E2#5771E2

#5771E2 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.7% C 0.173 H 270.5°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5771E2
RGBrgb(87, 113, 226)
HSLhsl(229, 71%, 61%)
HSVhsv(229, 62%, 89%)
CMYKcmyk(61.5%, 50%, 0%, 11.4%)
CIE-LABlab(51.07, 25.00, -60.55)
CIE-LCHlch(51.07, 65.51, 292.44°)
OKLaboklab(58.75% 0.0015 -0.1734)
OKLCHoklch(58.75% 0.173 270.5)
XYZxyz(23.5585, 19.3255, 74.4255)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5771E2 #E2C857
analogous
#57B7E2 #5771E2 #8357E2
triadic
#5771E2 #E25771 #71E257
tetradic
#5771E2 #E257B7 #E2C857 #57E283
square
#5771E2 #E257B7 #E2C857 #57E283
split-complementary
#5771E2 #E28357 #B7E257
monochromatic
#1C35A3 #2546D7 #5771E2 #8B9DEB #BFC9F4

Accessibility & contrast

On white

4.32
#5771E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5771E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5771E2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5771E2#FFFFFF#000000##000000
##5771E21.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3380E6
Deuteranopia (green-blind)
#0C74E0
Tritanopia (blue-blind)
#008B9F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5771e2;
/* rgb */ color: rgb(87, 113, 226);
/* oklch */ color: oklch(58.7% 0.173 270.5);
Tailwind
colors: {
  custom: {
    50: '#9399ec',
    500: '#5771e2',
    950: '#000000',
  },
}
SCSS
$custom: #5771e2;
$custom-light: #9399ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5771e2",
  "rgb": {
    "r": 87,
    "g": 113,
    "b": 226
  },
  "hsl": {
    "h": 228.777,
    "s": 70.558,
    "l": 61.373
  },
  "oklch": {
    "l": 0.58749,
    "c": 0.17343,
    "h": 270.5
  },
  "luminance": 0.19327
}

Semantic roles & 50–950 ramp

primary
#5771E2
secondary
#E4DBB0
accent
#AF13D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5771E2

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

Preview Lab → · Contrast checker → · Palette generator →

#5771E2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva