#5B58E8#5B58E8

#5B58E8 is a mid, highly saturated blue. Relative luminance 0.150; OKLCH L 54.9% C 0.211 H 277.8°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5B58E8
RGBrgb(91, 88, 232)
HSLhsl(241, 76%, 63%)
HSVhsv(241, 62%, 91%)
CMYKcmyk(60.8%, 62.1%, 0%, 9%)
CIE-LABlab(45.67, 42.85, -72.66)
CIE-LCHlch(45.67, 84.36, 300.53°)
OKLaboklab(54.93% 0.0286 -0.2092)
OKLCHoklch(54.93% 0.211 277.8)
XYZxyz(22.3649, 15.0281, 78.0504)
Luminance0.1503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B58E8 #E5E858
analogous
#589DE8 #5B58E8 #A358E8
triadic
#5B58E8 #E85B58 #58E85B
tetradic
#5B58E8 #E8589D #E5E858 #58E8A3
square
#5B58E8 #E8589D #E5E858 #58E8A3
split-complementary
#5B58E8 #E8A358 #9DE858
monochromatic
#1B18AE #2622E1 #5B58E8 #908EEF #C5C4F7

Accessibility & contrast

On white

5.24
#5B58E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#5B58E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B58E8
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B58E8#FFFFFF#000000##FFFFFF
##5B58E81.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072ED
Deuteranopia (green-blind)
#0066E5
Tritanopia (blue-blind)
#007C98
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #5b58e8;
/* rgb */ color: rgb(91, 88, 232);
/* oklch */ color: oklch(54.9% 0.211 277.8);
Tailwind
colors: {
  custom: {
    50: '#9787f0',
    500: '#5b58e8',
    950: '#000000',
  },
}
SCSS
$custom: #5b58e8;
$custom-light: #9787f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b58e8",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 232
  },
  "hsl": {
    "h": 241.25,
    "s": 75.789,
    "l": 62.745
  },
  "oklch": {
    "l": 0.54929,
    "c": 0.21113,
    "h": 277.8
  },
  "luminance": 0.1503
}

Semantic roles & 50–950 ramp

primary
#5B58E8
secondary
#E7E8B4
accent
#D80ED4
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B58E8

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

Preview Lab → · Contrast checker → · Palette generator →

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