#5754CC#5754CC

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

Color values

HEX#5754CC
RGBrgb(87, 84, 204)
HSLhsl(242, 54%, 56%)
HSVhsv(242, 59%, 80%)
CMYKcmyk(57.4%, 58.8%, 0%, 20%)
CIE-LABlab(42.35, 35.62, -62.11)
CIE-LCHlch(42.35, 71.60, 299.84°)
OKLaboklab(51.75% 0.0287 -0.1783)
OKLCHoklch(51.75% 0.181 279.1)
XYZxyz(17.9964, 12.7253, 58.6229)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5754CC #C9CC54
analogous
#548DCC #5754CC #9354CC
triadic
#5754CC #CC5754 #54CC57
tetradic
#5754CC #CC548D #C9CC54 #54CC93
square
#5754CC #CC548D #C9CC54 #54CC93
split-complementary
#5754CC #CC9354 #8DCC54
monochromatic
#282680 #3734AF #5754CC #8583DA #B4B2E8

Accessibility & contrast

On white

5.92
#5754CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5754CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5754CC
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5754CC#FFFFFF#000000##FFFFFF
##5754CC1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#0F7188
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5754cc;
/* rgb */ color: rgb(87, 84, 204);
/* oklch */ color: oklch(51.7% 0.181 279.1);
Tailwind
colors: {
  custom: {
    50: '#9184dc',
    500: '#5754cc',
    950: '#000000',
  },
}
SCSS
$custom: #5754cc;
$custom-light: #9184dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5754cc",
  "rgb": {
    "r": 87,
    "g": 84,
    "b": 204
  },
  "hsl": {
    "h": 241.5,
    "s": 54.054,
    "l": 56.471
  },
  "oklch": {
    "l": 0.51747,
    "c": 0.18059,
    "h": 279.1
  },
  "luminance": 0.12727
}

Semantic roles & 50–950 ramp

primary
#5754CC
secondary
#D5D7A5
accent
#DD4ADA
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5754CC

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

Preview Lab → · Contrast checker → · Palette generator →

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