#5751BD#5751BD

#5751BD is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.1% C 0.164 H 281.2°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#5751BD
RGBrgb(87, 81, 189)
HSLhsl(243, 45%, 53%)
HSVhsv(243, 57%, 74%)
CMYKcmyk(54%, 57.1%, 0%, 25.9%)
CIE-LABlab(40.55, 32.66, -56.31)
CIE-LCHlch(40.55, 65.10, 300.11°)
OKLaboklab(50.08% 0.0318 -0.1613)
OKLCHoklch(50.08% 0.164 281.2)
XYZxyz(16.0554, 11.5842, 49.5242)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751BD #B7BD51
analogous
#5181BD #5751BD #8D51BD
triadic
#5751BD #BD5751 #51BD57
tetradic
#5751BD #BD5181 #B7BD51 #51BD8D
square
#5751BD #BD5181 #B7BD51 #51BD8D
split-complementary
#5751BD #BD8D51 #81BD51
monochromatic
#2C296B #3F3997 #5751BD #827DCE #ADAADF

Accessibility & contrast

On white

6.33
#5751BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5751BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751BD
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751BD#FFFFFF#000000##FFFFFF
##5751BD1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C1
Deuteranopia (green-blind)
#005CBB
Tritanopia (blue-blind)
#296A7F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5751bd;
/* rgb */ color: rgb(87, 81, 189);
/* oklch */ color: oklch(50.1% 0.164 281.2);
Tailwind
colors: {
  custom: {
    50: '#8f82d2',
    500: '#5751bd',
    950: '#000000',
  },
}
SCSS
$custom: #5751bd;
$custom-light: #8f82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5751bd",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 189
  },
  "hsl": {
    "h": 243.333,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.50075,
    "c": 0.16439,
    "h": 281.2
  },
  "luminance": 0.11585
}

Semantic roles & 50–950 ramp

primary
#5751BD
secondary
#CACC9E
accent
#D553CD
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5751BD

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

Preview Lab → · Contrast checker → · Palette generator →

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