#5752CB#5752CB

#5752CB is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.3% C 0.182 H 279.7°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#5752CB
RGBrgb(87, 82, 203)
HSLhsl(242, 54%, 56%)
HSVhsv(242, 60%, 80%)
CMYKcmyk(57.1%, 59.6%, 0%, 20.4%)
CIE-LABlab(41.80, 36.52, -62.42)
CIE-LCHlch(41.80, 72.31, 300.33°)
OKLaboklab(51.32% 0.0306 -0.1792)
OKLCHoklch(51.32% 0.182 279.7)
XYZxyz(17.7239, 12.3714, 57.9423)
Luminance0.1237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5752CB #C6CB52
analogous
#5289CB #5752CB #9352CB
triadic
#5752CB #CB5752 #52CB57
tetradic
#5752CB #CB5289 #C6CB52 #52CB93
square
#5752CB #CB5289 #C6CB52 #52CB93
split-complementary
#5752CB #CB9352 #89CB52
monochromatic
#29267D #3934AC #5752CB #8581D9 #B2B0E7

Accessibility & contrast

On white

6.04
#5752CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5752CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5752CB
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5752CB#FFFFFF#000000##FFFFFF
##5752CB1.006.043.476.04
#FFFFFF6.041.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CF
Deuteranopia (green-blind)
#005EC9
Tritanopia (blue-blind)
#136F86
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5752cb;
/* rgb */ color: rgb(87, 82, 203);
/* oklch */ color: oklch(51.3% 0.182 279.7);
Tailwind
colors: {
  custom: {
    50: '#9183dc',
    500: '#5752cb',
    950: '#000000',
  },
}
SCSS
$custom: #5752cb;
$custom-light: #9183dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5752cb",
  "rgb": {
    "r": 87,
    "g": 82,
    "b": 203
  },
  "hsl": {
    "h": 242.479,
    "s": 53.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51321,
    "c": 0.18182,
    "h": 279.7
  },
  "luminance": 0.12373
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5752CB

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

Preview Lab → · Contrast checker → · Palette generator →

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