#5B58BF#5B58BF

#5B58BF is a mid, vivid blue. Relative luminance 0.130; OKLCH L 51.8% C 0.157 H 280.7°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#5B58BF
RGBrgb(91, 88, 191)
HSLhsl(242, 45%, 55%)
HSVhsv(242, 54%, 75%)
CMYKcmyk(52.4%, 53.9%, 0%, 25.1%)
CIE-LABlab(42.71, 29.78, -53.97)
CIE-LCHlch(42.71, 61.65, 298.89°)
OKLaboklab(51.81% 0.0292 -0.1542)
OKLCHoklch(51.81% 0.157 280.7)
XYZxyz(17.2052, 12.9642, 50.8759)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B58BF #BCBF58
analogous
#5888BF #5B58BF #8F58BF
triadic
#5B58BF #BF5B58 #58BF5B
tetradic
#5B58BF #BF5888 #BCBF58 #58BF8F
square
#5B58BF #BF5888 #BCBF58 #58BF8F
split-complementary
#5B58BF #BF8F58 #88BF58
monochromatic
#2D2B71 #3F3C9D #5B58BF #8684D0 #B2B0E1

Accessibility & contrast

On white

5.84
#5B58BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#5B58BF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B58BF
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B58BF#FFFFFF#000000##FFFFFF
##5B58BF1.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C69C3
Deuteranopia (green-blind)
#0C61BD
Tritanopia (blue-blind)
#316F83
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5b58bf;
/* rgb */ color: rgb(91, 88, 191);
/* oklch */ color: oklch(51.8% 0.157 280.7);
Tailwind
colors: {
  custom: {
    50: '#9187d3',
    500: '#5b58bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b58bf;
$custom-light: #9187d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b58bf",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 191
  },
  "hsl": {
    "h": 241.748,
    "s": 44.589,
    "l": 54.706
  },
  "oklch": {
    "l": 0.51805,
    "c": 0.15697,
    "h": 280.7
  },
  "luminance": 0.12965
}

Semantic roles & 50–950 ramp

primary
#5B58BF
secondary
#CECFA4
accent
#D454D1
background
#F9F8FD
surface
#F2EFFA
border
#CCCAD3
text
#0D0B14
muted
#7E7C83

Preview Lab

Preview with #5B58BF

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

Preview Lab → · Contrast checker → · Palette generator →

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