#5751BF#5751BF

#5751BF is a mid, vivid blue. Relative luminance 0.117; OKLCH L 50.2% C 0.167 H 281.0°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#5751BF
RGBrgb(87, 81, 191)
HSLhsl(243, 46%, 53%)
HSVhsv(243, 58%, 75%)
CMYKcmyk(54.5%, 57.6%, 0%, 25.1%)
CIE-LABlab(40.69, 33.29, -57.25)
CIE-LCHlch(40.69, 66.23, 300.18°)
OKLaboklab(50.22% 0.0318 -0.164)
OKLCHoklch(50.22% 0.167 281)
XYZxyz(16.2740, 11.6717, 50.6754)
Luminance0.1167 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751BF #B9BF51
analogous
#5182BF #5751BF #8E51BF
triadic
#5751BF #BF5751 #51BF57
tetradic
#5751BF #BF5182 #B9BF51 #51BF8E
square
#5751BF #BF5182 #B9BF51 #51BF8E
split-complementary
#5751BF #BF8E51 #82BF51
monochromatic
#2C286D #3E399A #5751BF #827ECF #ADAAE0

Accessibility & contrast

On white

6.30
#5751BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5751BF
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751BF#FFFFFF#000000##FFFFFF
##5751BF1.006.303.336.30
#FFFFFF6.301.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C3
Deuteranopia (green-blind)
#005CBD
Tritanopia (blue-blind)
#276B80
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5751bf;
/* rgb */ color: rgb(87, 81, 191);
/* oklch */ color: oklch(50.2% 0.167 281.0);
Tailwind
colors: {
  custom: {
    50: '#8f82d3',
    500: '#5751bf',
    950: '#000000',
  },
}
SCSS
$custom: #5751bf;
$custom-light: #8f82d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5751bf",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 191
  },
  "hsl": {
    "h": 243.273,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.50225,
    "c": 0.1671,
    "h": 281
  },
  "luminance": 0.11673
}

Semantic roles & 50–950 ramp

primary
#5751BF
secondary
#CBCE9E
accent
#D652CF
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5751BF

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

Preview Lab → · Contrast checker → · Palette generator →

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