#5754CB#5754CB

#5754CB is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.7% C 0.179 H 279.2°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5754CB
RGBrgb(87, 84, 203)
HSLhsl(242, 53%, 56%)
HSVhsv(242, 59%, 80%)
CMYKcmyk(57.1%, 58.6%, 0%, 20.4%)
CIE-LABlab(42.27, 35.30, -61.65)
CIE-LCHlch(42.27, 71.04, 299.79°)
OKLaboklab(51.67% 0.0287 -0.1769)
OKLCHoklch(51.67% 0.179 279.2)
XYZxyz(17.8769, 12.6775, 57.9933)
Luminance0.1268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5754CB #C8CB54
analogous
#548DCB #5754CB #9354CB
triadic
#5754CB #CB5754 #54CB57
tetradic
#5754CB #CB548D #C8CB54 #54CB93
square
#5754CB #CB548D #C8CB54 #54CB93
split-complementary
#5754CB #CB9354 #8DCB54
monochromatic
#29267E #3835AD #5754CB #8583D9 #B3B2E8

Accessibility & contrast

On white

5.94
#5754CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5754CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5754CB
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5754CB#FFFFFF#000000##FFFFFF
##5754CB1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#005FC9
Tritanopia (blue-blind)
#127087
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5754cb;
/* rgb */ color: rgb(87, 84, 203);
/* oklch */ color: oklch(51.7% 0.179 279.2);
Tailwind
colors: {
  custom: {
    50: '#9184dc',
    500: '#5754cb',
    950: '#000000',
  },
}
SCSS
$custom: #5754cb;
$custom-light: #9184dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5754cb",
  "rgb": {
    "r": 87,
    "g": 84,
    "b": 203
  },
  "hsl": {
    "h": 241.513,
    "s": 53.363,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5167,
    "c": 0.17926,
    "h": 279.2
  },
  "luminance": 0.12679
}

Semantic roles & 50–950 ramp

primary
#5754CB
secondary
#D5D6A5
accent
#DD4BD9
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5754CB

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

Preview Lab → · Contrast checker → · Palette generator →

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