#5751BE#5751BE

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

Color values

HEX#5751BE
RGBrgb(87, 81, 190)
HSLhsl(243, 46%, 53%)
HSVhsv(243, 57%, 75%)
CMYKcmyk(54.2%, 57.4%, 0%, 25.5%)
CIE-LABlab(40.62, 32.97, -56.78)
CIE-LCHlch(40.62, 65.66, 300.14°)
OKLaboklab(50.15% 0.0318 -0.1627)
OKLCHoklch(50.15% 0.166 281.1)
XYZxyz(16.1643, 11.6278, 50.0978)
Luminance0.1163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751BE #B8BE51
analogous
#5181BE #5751BE #8D51BE
triadic
#5751BE #BE5751 #51BE57
tetradic
#5751BE #BE5181 #B8BE51 #51BE8D
square
#5751BE #BE5181 #B8BE51 #51BE8D
split-complementary
#5751BE #BE8D51 #81BE51
monochromatic
#2C286C #3E3999 #5751BE #827ECF #ADAADF

Accessibility & contrast

On white

6.31
#5751BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5751BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751BE
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751BE#FFFFFF#000000##FFFFFF
##5751BE1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C2
Deuteranopia (green-blind)
#005CBC
Tritanopia (blue-blind)
#286A7F
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5751be;
/* rgb */ color: rgb(87, 81, 190);
/* oklch */ color: oklch(50.1% 0.166 281.1);
Tailwind
colors: {
  custom: {
    50: '#8f82d2',
    500: '#5751be',
    950: '#000000',
  },
}
SCSS
$custom: #5751be;
$custom-light: #8f82d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5751be",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 190
  },
  "hsl": {
    "h": 243.303,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.5015,
    "c": 0.16574,
    "h": 281.1
  },
  "luminance": 0.11629
}

Semantic roles & 50–950 ramp

primary
#5751BE
secondary
#CACD9E
accent
#D553CE
background
#F9F7FD
surface
#F1EEFA
border
#CBC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5751BE

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

Preview Lab → · Contrast checker → · Palette generator →

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