#5751CE#5751CE

#5751CE is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.4% C 0.187 H 279.7°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5751CE
RGBrgb(87, 81, 206)
HSLhsl(243, 56%, 56%)
HSVhsv(243, 61%, 81%)
CMYKcmyk(57.8%, 60.7%, 0%, 19.2%)
CIE-LABlab(41.79, 38.08, -64.16)
CIE-LCHlch(41.79, 74.61, 300.69°)
OKLaboklab(51.39% 0.0314 -0.1844)
OKLCHoklch(51.39% 0.187 279.7)
XYZxyz(18.0100, 12.3661, 59.8184)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751CE #C8CE51
analogous
#518ACE #5751CE #9651CE
triadic
#5751CE #CE5751 #51CE57
tetradic
#5751CE #CE518A #C8CE51 #51CE96
square
#5751CE #CE518A #C8CE51 #51CE96
split-complementary
#5751CE #CE9651 #8ACE51
monochromatic
#292480 #3832B0 #5751CE #8581DB #B3B1E9

Accessibility & contrast

On white

6.05
#5751CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5751CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751CE
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751CE#FFFFFF#000000##FFFFFF
##5751CE1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D2
Deuteranopia (green-blind)
#005ECB
Tritanopia (blue-blind)
#0A6F88
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5751ce;
/* rgb */ color: rgb(87, 81, 206);
/* oklch */ color: oklch(51.4% 0.187 279.7);
Tailwind
colors: {
  custom: {
    50: '#9182de',
    500: '#5751ce',
    950: '#000000',
  },
}
SCSS
$custom: #5751ce;
$custom-light: #9182de;
$custom-dark: #000000;
JSON
{
  "hex": "#5751ce",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 206
  },
  "hsl": {
    "h": 242.88,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51386,
    "c": 0.18702,
    "h": 279.7
  },
  "luminance": 0.12367
}

Semantic roles & 50–950 ramp

primary
#5751CE
secondary
#D5D7A4
accent
#DF48D8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5751CE

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

Preview Lab → · Contrast checker → · Palette generator →

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