#5B5CE3#5B5CE3

#5B5CE3 is a mid, vivid blue. Relative luminance 0.154; OKLCH L 55.2% C 0.200 H 277.3°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#5B5CE3
RGBrgb(91, 92, 227)
HSLhsl(240, 71%, 62%)
HSVhsv(240, 60%, 89%)
CMYKcmyk(59.9%, 59.5%, 0%, 11%)
CIE-LABlab(46.21, 38.87, -68.96)
CIE-LCHlch(46.21, 79.16, 299.41°)
OKLaboklab(55.2% 0.0254 -0.1983)
OKLCHoklch(55.2% 0.2 277.3)
XYZxyz(22.0022, 15.4228, 74.4756)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5CE3 #E3E25B
analogous
#5BA0E3 #5B5CE3 #9E5BE3
triadic
#5B5CE3 #E35B5C #5CE35B
tetradic
#5B5CE3 #E35BA0 #E3E25B #5BE39E
square
#5B5CE3 #E35BA0 #E3E25B #5BE39E
split-complementary
#5B5CE3 #E39E5B #A0E35B
monochromatic
#1D1EA7 #2728DA #5B5CE3 #8F90EC #C4C4F5

Accessibility & contrast

On white

5.14
#5B5CE3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#5B5CE3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5CE3
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5CE3#FFFFFF#000000##FFFFFF
##5B5CE31.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0073E7
Deuteranopia (green-blind)
#0068E0
Tritanopia (blue-blind)
#007D97
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #5b5ce3;
/* rgb */ color: rgb(91, 92, 227);
/* oklch */ color: oklch(55.2% 0.200 277.3);
Tailwind
colors: {
  custom: {
    50: '#968aed',
    500: '#5b5ce3',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ce3;
$custom-light: #968aed;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ce3",
  "rgb": {
    "r": 91,
    "g": 92,
    "b": 227
  },
  "hsl": {
    "h": 239.559,
    "s": 70.833,
    "l": 62.353
  },
  "oklch": {
    "l": 0.55203,
    "c": 0.19991,
    "h": 277.3
  },
  "luminance": 0.15424
}

Semantic roles & 50–950 ramp

primary
#5B5CE3
secondary
#E6E5B4
accent
#D113D3
background
#F9F8FE
surface
#F2F0FD
border
#CCCBD5
text
#0F0C16
muted
#7E7D84

Preview Lab

Preview with #5B5CE3

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

Preview Lab → · Contrast checker → · Palette generator →

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