#5751CB#5751CB

#5751CB is a mid, vivid blue. Relative luminance 0.122; OKLCH L 51.1% C 0.183 H 279.9°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#5751CB
RGBrgb(87, 81, 203)
HSLhsl(243, 54%, 56%)
HSVhsv(243, 60%, 80%)
CMYKcmyk(57.1%, 60.1%, 0%, 20.4%)
CIE-LABlab(41.57, 37.12, -62.80)
CIE-LCHlch(41.57, 72.95, 300.59°)
OKLaboklab(51.15% 0.0316 -0.1803)
OKLCHoklch(51.15% 0.183 279.9)
XYZxyz(17.6490, 12.2217, 57.9173)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5751CB #C5CB51
analogous
#5188CB #5751CB #9451CB
triadic
#5751CB #CB5751 #51CB57
tetradic
#5751CB #CB5188 #C5CB51 #51CB94
square
#5751CB #CB5188 #C5CB51 #51CB94
split-complementary
#5751CB #CB9451 #88CB51
monochromatic
#29257C #3933AC #5751CB #8480D9 #B2AFE7

Accessibility & contrast

On white

6.10
#5751CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#5751CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5751CB
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5751CB#FFFFFF#000000##FFFFFF
##5751CB1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005DC9
Tritanopia (blue-blind)
#136E86
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5751cb;
/* rgb */ color: rgb(87, 81, 203);
/* oklch */ color: oklch(51.1% 0.183 279.9);
Tailwind
colors: {
  custom: {
    50: '#9182dc',
    500: '#5751cb',
    950: '#000000',
  },
}
SCSS
$custom: #5751cb;
$custom-light: #9182dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5751cb",
  "rgb": {
    "r": 87,
    "g": 81,
    "b": 203
  },
  "hsl": {
    "h": 242.951,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51149,
    "c": 0.18308,
    "h": 279.9
  },
  "luminance": 0.12223
}

Semantic roles & 50–950 ramp

primary
#5751CB
secondary
#D3D5A3
accent
#DD4AD6
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5751CB

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

Preview Lab → · Contrast checker → · Palette generator →

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