#5751DC#5751DC

#5751DC is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 52.5% C 0.205 H 278.6°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5751DC
RGBrgb(87, 81, 220)
HSLhsl(243, 67%, 59%)
HSVhsv(243, 63%, 86%)
CMYKcmyk(60.5%, 63.2%, 0%, 13.7%)
CIE-LABlab(42.88, 42.55, -70.42)
CIE-LCHlch(42.88, 82.28, 301.14°)
OKLaboklab(52.52% 0.0306 -0.2027)
OKLCHoklch(52.52% 0.205 278.6)
XYZxyz(19.7870, 13.0769, 69.1777)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751DC #D6DC51
analogous
#5191DC #5751DC #9D51DC
triadic
#5751DC #DC5751 #51DC57
tetradic
#5751DC #DC5191 #D6DC51 #51DC9D
square
#5751DC #DC5191 #D6DC51 #51DC9D
split-complementary
#5751DC #DC9D51 #91DC51
monochromatic
#231E95 #2F28C8 #5751DC #8884E6 #B9B7F0

Accessibility & contrast

On white

5.81
#5751DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#5751DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751DC
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751DC#FFFFFF#000000##FFFFFF
##5751DC1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#0060D9
Tritanopia (blue-blind)
#00748F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5751dc;
/* rgb */ color: rgb(87, 81, 220);
/* oklch */ color: oklch(52.5% 0.205 278.6);
Tailwind
colors: {
  custom: {
    50: '#9482e8',
    500: '#5751dc',
    950: '#000000',
  },
}
SCSS
$custom: #5751dc;
$custom-light: #9482e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5751dc",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 242.59,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52521,
    "c": 0.20503,
    "h": 278.6
  },
  "luminance": 0.13078
}

Semantic roles & 50–950 ramp

primary
#5751DC
secondary
#DDE0A9
accent
#E93EE2
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5751DC

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

Preview Lab → · Contrast checker → · Palette generator →

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