#5B58CB#5B58CB

#5B58CB is a mid, vivid blue. Relative luminance 0.135; OKLCH L 52.7% C 0.173 H 279.8°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#5B58CB
RGBrgb(91, 88, 203)
HSLhsl(242, 53%, 57%)
HSVhsv(242, 57%, 80%)
CMYKcmyk(55.2%, 56.7%, 0%, 20.4%)
CIE-LABlab(43.53, 33.60, -59.60)
CIE-LCHlch(43.53, 68.42, 299.41°)
OKLaboklab(52.68% 0.0295 -0.1708)
OKLCHoklch(52.68% 0.173 279.8)
XYZxyz(18.5802, 13.5142, 58.1178)
Luminance0.1351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B58CB #C8CB58
analogous
#588FCB #5B58CB #9458CB
triadic
#5B58CB #CB5B58 #58CB5B
tetradic
#5B58CB #CB588F #C8CB58 #58CB94
square
#5B58CB #CB588F #C8CB58 #58CB94
split-complementary
#5B58CB #CB9458 #8FCB58
monochromatic
#2A2881 #3A37AF #5B58CB #8987DA #B7B5E8

Accessibility & contrast

On white

5.67
#5B58CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#5B58CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B58CB
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B58CB#FFFFFF#000000##FFFFFF
##5B58CB1.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BCF
Deuteranopia (green-blind)
#0062C9
Tritanopia (blue-blind)
#237389
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5b58cb;
/* rgb */ color: rgb(91, 88, 203);
/* oklch */ color: oklch(52.7% 0.173 279.8);
Tailwind
colors: {
  custom: {
    50: '#9387dc',
    500: '#5b58cb',
    950: '#000000',
  },
}
SCSS
$custom: #5b58cb;
$custom-light: #9387dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b58cb",
  "rgb": {
    "r": 91,
    "g": 88,
    "b": 203
  },
  "hsl": {
    "h": 241.565,
    "s": 52.511,
    "l": 57.059
  },
  "oklch": {
    "l": 0.52675,
    "c": 0.17332,
    "h": 279.8
  },
  "luminance": 0.13515
}

Semantic roles & 50–950 ramp

primary
#5B58CB
secondary
#D6D7A8
accent
#DC4CD8
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5B58CB

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

Preview Lab → · Contrast checker → · Palette generator →

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