#5B58BC#5B58BC

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

Color values

HEX#5B58BC
RGBrgb(91, 88, 188)
HSLhsl(242, 43%, 54%)
HSVhsv(242, 53%, 74%)
CMYKcmyk(51.6%, 53.2%, 0%, 26.3%)
CIE-LABlab(42.51, 28.84, -52.54)
CIE-LCHlch(42.51, 59.94, 298.76°)
OKLaboklab(51.59% 0.029 -0.15)
OKLCHoklch(51.59% 0.153 281)
XYZxyz(16.8784, 12.8335, 49.1549)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B58BC #B9BC58
analogous
#5887BC #5B58BC #8D58BC
triadic
#5B58BC #BC5B58 #58BC5B
tetradic
#5B58BC #BC5887 #B9BC58 #58BC8D
square
#5B58BC #BC5887 #B9BC58 #58BC8D
split-complementary
#5B58BC #BC8D58 #87BC58
monochromatic
#2E2C6E #403E99 #5B58BC #8684CE #B1AFDF

Accessibility & contrast

On white

5.89
#5B58BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#5B58BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B58BC
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B58BC#FFFFFF#000000##FFFFFF
##5B58BC1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2268BF
Deuteranopia (green-blind)
#1661BA
Tritanopia (blue-blind)
#346E81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5b58bc;
/* rgb */ color: rgb(91, 88, 188);
/* oklch */ color: oklch(51.6% 0.153 281.0);
Tailwind
colors: {
  custom: {
    50: '#9087d1',
    500: '#5b58bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b58bc;
$custom-light: #9087d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b58bc",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 188
  },
  "hsl": {
    "h": 241.8,
    "s": 42.735,
    "l": 54.118
  },
  "oklch": {
    "l": 0.51593,
    "c": 0.15281,
    "h": 281
  },
  "luminance": 0.12834
}

Semantic roles & 50–950 ramp

primary
#5B58BC
secondary
#CCCDA3
accent
#D355CF
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5B58BC

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

Preview Lab → · Contrast checker → · Palette generator →

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