#5751CF#5751CF

#5751CF is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.5% C 0.188 H 279.6°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5751CF
RGBrgb(87, 81, 207)
HSLhsl(243, 57%, 56%)
HSVhsv(243, 61%, 81%)
CMYKcmyk(58%, 60.9%, 0%, 18.8%)
CIE-LABlab(41.87, 38.40, -64.61)
CIE-LCHlch(41.87, 75.16, 300.72°)
OKLaboklab(51.47% 0.0314 -0.1857)
OKLCHoklch(51.47% 0.188 279.6)
XYZxyz(18.1318, 12.4148, 60.4602)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751CF #C9CF51
analogous
#518ACF #5751CF #9651CF
triadic
#5751CF #CF5751 #51CF57
tetradic
#5751CF #CF518A #C9CF51 #51CF96
square
#5751CF #CF518A #C9CF51 #51CF96
split-complementary
#5751CF #CF9651 #8ACF51
monochromatic
#282482 #3731B2 #5751CF #8581DC #B4B1E9

Accessibility & contrast

On white

6.03
#5751CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5751CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751CF
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751CF#FFFFFF#000000##FFFFFF
##5751CF1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D3
Deuteranopia (green-blind)
#005ECC
Tritanopia (blue-blind)
#067088
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5751cf;
/* rgb */ color: rgb(87, 81, 207);
/* oklch */ color: oklch(51.5% 0.188 279.6);
Tailwind
colors: {
  custom: {
    50: '#9182df',
    500: '#5751cf',
    950: '#000000',
  },
}
SCSS
$custom: #5751cf;
$custom-light: #9182df;
$custom-dark: #000000;
JSON
{
  "hex": "#5751cf",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 207
  },
  "hsl": {
    "h": 242.857,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51465,
    "c": 0.18832,
    "h": 279.6
  },
  "luminance": 0.12416
}

Semantic roles & 50–950 ramp

primary
#5751CF
secondary
#D5D8A4
accent
#E048D9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5751CF

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

Preview Lab → · Contrast checker → · Palette generator →

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