#5751EA#5751EA

#5751EA is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.7% C 0.223 H 277.6°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5751EA
RGBrgb(87, 81, 234)
HSLhsl(242, 78%, 62%)
HSVhsv(242, 65%, 92%)
CMYKcmyk(62.8%, 65.4%, 0%, 8.2%)
CIE-LABlab(44.02, 46.99, -76.51)
CIE-LCHlch(44.02, 89.79, 301.56°)
OKLaboklab(53.7% 0.0293 -0.2206)
OKLCHoklch(53.7% 0.223 277.6)
XYZxyz(21.7194, 13.8499, 79.3547)
Luminance0.1385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751EA #E4EA51
analogous
#5198EA #5751EA #A451EA
triadic
#5751EA #EA5751 #51EA57
tetradic
#5751EA #EA5198 #E4EA51 #51EAA4
square
#5751EA #EA5198 #E4EA51 #51EAA4
split-complementary
#5751EA #EAA451 #98EA51
monochromatic
#1B15AC #231BE2 #5751EA #8C88F1 #C0BEF7

Accessibility & contrast

On white

5.57
#5751EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5751EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751EA
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751EA#FFFFFF#000000##FFFFFF
##5751EA1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5751ea;
/* rgb */ color: rgb(87, 81, 234);
/* oklch */ color: oklch(53.7% 0.223 277.6);
Tailwind
colors: {
  custom: {
    50: '#9683f2',
    500: '#5751ea',
    950: '#000000',
  },
}
SCSS
$custom: #5751ea;
$custom-light: #9683f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5751ea",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 242.353,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.53701,
    "c": 0.22253,
    "h": 277.6
  },
  "luminance": 0.13852
}

Semantic roles & 50–950 ramp

primary
#5751EA
secondary
#E6E8AF
accent
#DB0BD3
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5751EA

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

Preview Lab → · Contrast checker → · Palette generator →

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