#5751D7#5751D7

#5751D7 is a mid, vivid blue. Relative luminance 0.128; OKLCH L 52.1% C 0.199 H 279.0°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#5751D7
RGBrgb(87, 81, 215)
HSLhsl(243, 63%, 58%)
HSVhsv(243, 62%, 84%)
CMYKcmyk(59.5%, 62.3%, 0%, 15.7%)
CIE-LABlab(42.48, 40.95, -68.21)
CIE-LCHlch(42.48, 79.56, 300.98°)
OKLaboklab(52.11% 0.0309 -0.1962)
OKLCHoklch(52.11% 0.199 279)
XYZxyz(19.1347, 12.8160, 65.7422)
Luminance0.1282 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751D7 #D1D751
analogous
#518ED7 #5751D7 #9A51D7
triadic
#5751D7 #D75751 #51D757
tetradic
#5751D7 #D7518E #D1D751 #51D79A
square
#5751D7 #D7518E #D1D751 #51D79A
split-complementary
#5751D7 #D79A51 #8ED751
monochromatic
#25208D #322CBF #5751D7 #8783E2 #B7B5EE

Accessibility & contrast

On white

5.89
#5751D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5751D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751D7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751D7#FFFFFF#000000##FFFFFF
##5751D71.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ADB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#00728C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5751d7;
/* rgb */ color: rgb(87, 81, 215);
/* oklch */ color: oklch(52.1% 0.199 279.0);
Tailwind
colors: {
  custom: {
    50: '#9382e4',
    500: '#5751d7',
    950: '#000000',
  },
}
SCSS
$custom: #5751d7;
$custom-light: #9382e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5751d7",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 215
  },
  "hsl": {
    "h": 242.687,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.5211,
    "c": 0.19866,
    "h": 279
  },
  "luminance": 0.12817
}

Semantic roles & 50–950 ramp

primary
#5751D7
secondary
#DADDA7
accent
#E642DE
background
#F9F8FE
surface
#F2EFFC
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5751D7

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

Preview Lab → · Contrast checker → · Palette generator →

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