#5B5BEC#5B5BEC

#5B5BEC is a mid, highly saturated blue. Relative luminance 0.158; OKLCH L 55.7% C 0.213 H 277.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#5B5BEC
RGBrgb(91, 91, 236)
HSLhsl(240, 79%, 64%)
HSVhsv(240, 61%, 93%)
CMYKcmyk(61.4%, 61.4%, 0%, 7.5%)
CIE-LABlab(46.66, 42.36, -73.31)
CIE-LCHlch(46.66, 84.66, 300.02°)
OKLaboklab(55.75% 0.0259 -0.2111)
OKLCHoklch(55.75% 0.213 277)
XYZxyz(23.1909, 15.7606, 81.1606)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BEC #ECEC5B
analogous
#5BA4EC #5B5BEC #A45BEC
triadic
#5B5BEC #EC5B5B #5BEC5B
tetradic
#5B5BEC #EC5BA4 #ECEC5B #5BECA4
square
#5B5BEC #EC5BA4 #ECEC5B #5BECA4
split-complementary
#5B5BEC #ECA45B #A4EC5B
monochromatic
#1515B7 #2424E6 #5B5BEC #9292F2 #C9C9F9

Accessibility & contrast

On white

5.06
#5B5BEC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#5B5BEC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BEC
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BEC#FFFFFF#000000##FFFFFF
##5B5BEC1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075F1
Deuteranopia (green-blind)
#0068E9
Tritanopia (blue-blind)
#007F9B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5bec;
/* rgb */ color: rgb(91, 91, 236);
/* oklch */ color: oklch(55.7% 0.213 277.0);
Tailwind
colors: {
  custom: {
    50: '#988af3',
    500: '#5b5bec',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bec;
$custom-light: #988af3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bec",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 236
  },
  "hsl": {
    "h": 240,
    "s": 79.235,
    "l": 64.118
  },
  "oklch": {
    "l": 0.55748,
    "c": 0.21264,
    "h": 277
  },
  "luminance": 0.15762
}

Semantic roles & 50–950 ramp

primary
#5B5BEC
secondary
#EBEBB8
accent
#DC0ADC
background
#FAF8FF
surface
#F3F0FE
border
#CDCBD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5BEC

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

Preview Lab → · Contrast checker → · Palette generator →

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