#5B57BF#5B57BF

#5B57BF is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.6% C 0.158 H 281.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#5B57BF
RGBrgb(91, 87, 191)
HSLhsl(242, 45%, 55%)
HSVhsv(242, 54%, 75%)
CMYKcmyk(52.4%, 54.5%, 0%, 25.1%)
CIE-LABlab(42.46, 30.40, -54.37)
CIE-LCHlch(42.46, 62.29, 299.21°)
OKLaboklab(51.62% 0.0303 -0.1554)
OKLCHoklch(51.62% 0.158 281)
XYZxyz(17.1237, 12.8011, 50.8487)
Luminance0.1280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B57BF #BBBF57
analogous
#5787BF #5B57BF #8F57BF
triadic
#5B57BF #BF5B57 #57BF5B
tetradic
#5B57BF #BF5787 #BBBF57 #57BF8F
square
#5B57BF #BF5787 #BBBF57 #57BF8F
split-complementary
#5B57BF #BF8F57 #87BF57
monochromatic
#2E2B71 #403C9D #5B57BF #8683D0 #B2B0E1

Accessibility & contrast

On white

5.90
#5B57BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5B57BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B57BF
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B57BF#FFFFFF#000000##FFFFFF
##5B57BF1.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1968C3
Deuteranopia (green-blind)
#0660BD
Tritanopia (blue-blind)
#316E82
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b57bf;
/* rgb */ color: rgb(91, 87, 191);
/* oklch */ color: oklch(51.6% 0.158 281.0);
Tailwind
colors: {
  custom: {
    50: '#9186d3',
    500: '#5b57bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b57bf;
$custom-light: #9186d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b57bf",
  "rgb": {
    "r": 91,
    "g": 87,
    "b": 191
  },
  "hsl": {
    "h": 242.308,
    "s": 44.828,
    "l": 54.51
  },
  "oklch": {
    "l": 0.5162,
    "c": 0.15833,
    "h": 281
  },
  "luminance": 0.12802
}

Semantic roles & 50–950 ramp

primary
#5B57BF
secondary
#CDCFA3
accent
#D553D0
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5B57BF

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

Preview Lab → · Contrast checker → · Palette generator →

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