#5751EF#5751EF

#5751EF is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 54.1% C 0.229 H 277.2°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5751EF
RGBrgb(87, 81, 239)
HSLhsl(242, 83%, 63%)
HSVhsv(242, 66%, 94%)
CMYKcmyk(63.6%, 66.1%, 0%, 6.3%)
CIE-LABlab(44.43, 48.57, -78.64)
CIE-LCHlch(44.43, 92.43, 301.70°)
OKLaboklab(54.13% 0.0287 -0.2268)
OKLCHoklch(54.13% 0.229 277.2)
XYZxyz(22.4478, 14.1412, 83.1912)
Luminance0.1414 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751EF #E9EF51
analogous
#519AEF #5751EF #A651EF
triadic
#5751EF #EF5751 #51EF57
tetradic
#5751EF #EF519A #E9EF51 #51EFA6
square
#5751EF #EF519A #E9EF51 #51EFA6
split-complementary
#5751EF #EFA651 #9AEF51
monochromatic
#1711B5 #2119EA #5751EF #8D89F4 #C3C1F9

Accessibility & contrast

On white

5.49
#5751EF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5751EF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751EF
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751EF#FFFFFF#000000##FFFFFF
##5751EF1.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F4
Deuteranopia (green-blind)
#0062EC
Tritanopia (blue-blind)
#007B99
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5751ef;
/* rgb */ color: rgb(87, 81, 239);
/* oklch */ color: oklch(54.1% 0.229 277.2);
Tailwind
colors: {
  custom: {
    50: '#9783f5',
    500: '#5751ef',
    950: '#000000',
  },
}
SCSS
$custom: #5751ef;
$custom-light: #9783f5;
$custom-dark: #000000;
JSON
{
  "hex": "#5751ef",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 239
  },
  "hsl": {
    "h": 242.278,
    "s": 83.158,
    "l": 62.745
  },
  "oklch": {
    "l": 0.54132,
    "c": 0.22866,
    "h": 277.2
  },
  "luminance": 0.14143
}

Semantic roles & 50–950 ramp

primary
#5751EF
secondary
#E8EAB1
accent
#E006D7
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5751EF

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

Preview Lab → · Contrast checker → · Palette generator →

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