#5B58BB#5B58BB

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

Color values

HEX#5B58BB
RGBrgb(91, 88, 187)
HSLhsl(242, 42%, 54%)
HSVhsv(242, 53%, 73%)
CMYKcmyk(51.3%, 52.9%, 0%, 26.7%)
CIE-LABlab(42.45, 28.52, -52.07)
CIE-LCHlch(42.45, 59.37, 298.71°)
OKLaboklab(51.52% 0.029 -0.1486)
OKLCHoklch(51.52% 0.151 281)
XYZxyz(16.7710, 12.7905, 48.5892)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B58BB #B8BB58
analogous
#5887BB #5B58BB #8D58BB
triadic
#5B58BB #BB5B58 #58BB5B
tetradic
#5B58BB #BB5887 #B8BB58 #58BB8D
square
#5B58BB #BB5887 #B8BB58 #58BB8D
split-complementary
#5B58BB #BB8D58 #87BB58
monochromatic
#2E2C6C #413E98 #5B58BB #8683CD #B0AFDE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B58BB#FFFFFF#000000##FFFFFF
##5B58BB1.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)
#2368BE
Deuteranopia (green-blind)
#1861B9
Tritanopia (blue-blind)
#356E81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b58bb;
/* rgb */ color: rgb(91, 88, 187);
/* oklch */ color: oklch(51.5% 0.151 281.0);
Tailwind
colors: {
  custom: {
    50: '#9087d0',
    500: '#5b58bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b58bb;
$custom-light: #9087d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b58bb",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 187
  },
  "hsl": {
    "h": 241.818,
    "s": 42.128,
    "l": 53.922
  },
  "oklch": {
    "l": 0.51524,
    "c": 0.15142,
    "h": 281
  },
  "luminance": 0.12791
}

Semantic roles & 50–950 ramp

primary
#5B58BB
secondary
#CBCDA2
accent
#D256CE
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5B58BB

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

Preview Lab → · Contrast checker → · Palette generator →

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