#5A57BF#5A57BF

#5A57BF is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.5% C 0.159 H 280.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5A57BF
RGBrgb(90, 87, 191)
HSLhsl(242, 45%, 55%)
HSVhsv(242, 54%, 75%)
CMYKcmyk(52.9%, 54.5%, 0%, 25.1%)
CIE-LABlab(42.38, 30.20, -54.50)
CIE-LCHlch(42.38, 62.31, 298.99°)
OKLaboklab(51.54% 0.0291 -0.1558)
OKLCHoklch(51.54% 0.159 280.6)
XYZxyz(17.0257, 12.7506, 50.8441)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A57BF #BCBF57
analogous
#5788BF #5A57BF #8E57BF
triadic
#5A57BF #BF5A57 #57BF5A
tetradic
#5A57BF #BF5788 #BCBF57 #57BF8E
square
#5A57BF #BF5788 #BCBF57 #57BF8E
split-complementary
#5A57BF #BF8E57 #88BF57
monochromatic
#2D2B71 #3F3C9D #5A57BF #8683D0 #B1B0E1

Accessibility & contrast

On white

5.91
#5A57BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5A57BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A57BF
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A57BF#FFFFFF#000000##FFFFFF
##5A57BF1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1868C3
Deuteranopia (green-blind)
#0360BD
Tritanopia (blue-blind)
#2F6F82
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a57bf;
/* rgb */ color: rgb(90, 87, 191);
/* oklch */ color: oklch(51.5% 0.159 280.6);
Tailwind
colors: {
  custom: {
    50: '#9086d3',
    500: '#5a57bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a57bf;
$custom-light: #9086d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a57bf",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 241.731,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.51543,
    "c": 0.1585,
    "h": 280.6
  },
  "luminance": 0.12752
}

Semantic roles & 50–950 ramp

primary
#5A57BF
secondary
#CECFA3
accent
#D553D1
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5A57BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5A57BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva