#5B58D2#5B58D2

#5B58D2 is a mid, vivid blue. Relative luminance 0.139; OKLCH L 53.2% C 0.183 H 279.3°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5B58D2
RGBrgb(91, 88, 210)
HSLhsl(241, 58%, 58%)
HSVhsv(241, 58%, 82%)
CMYKcmyk(56.7%, 58.1%, 0%, 17.6%)
CIE-LABlab(44.02, 35.83, -62.82)
CIE-LCHlch(44.02, 72.32, 299.70°)
OKLaboklab(53.2% 0.0295 -0.1803)
OKLCHoklch(53.2% 0.183 279.3)
XYZxyz(19.4333, 13.8554, 62.6106)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B58D2 #CFD258
analogous
#5892D2 #5B58D2 #9858D2
triadic
#5B58D2 #D25B58 #58D25B
tetradic
#5B58D2 #D25892 #CFD258 #58D298
square
#5B58D2 #D25892 #CFD258 #58D298
split-complementary
#5B58D2 #D29858 #92D258
monochromatic
#28258A #3632BB #5B58D2 #8A88DF #BAB8EC

Accessibility & contrast

On white

5.57
#5B58D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5B58D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B58D2
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B58D2#FFFFFF#000000##FFFFFF
##5B58D21.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD6
Deuteranopia (green-blind)
#0063D0
Tritanopia (blue-blind)
#17758C
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5b58d2;
/* rgb */ color: rgb(91, 88, 210);
/* oklch */ color: oklch(53.2% 0.183 279.3);
Tailwind
colors: {
  custom: {
    50: '#9487e1',
    500: '#5b58d2',
    950: '#000000',
  },
}
SCSS
$custom: #5b58d2;
$custom-light: #9487e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b58d2",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 210
  },
  "hsl": {
    "h": 241.475,
    "s": 57.547,
    "l": 58.431
  },
  "oklch": {
    "l": 0.532,
    "c": 0.18265,
    "h": 279.3
  },
  "luminance": 0.13857
}

Semantic roles & 50–950 ramp

primary
#5B58D2
secondary
#DADBAB
accent
#E147DD
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B58D2

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

Preview Lab → · Contrast checker → · Palette generator →

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