#5B5BEF#5B5BEF

#5B5BEF is a mid, highly saturated blue. Relative luminance 0.159; OKLCH L 56.0% C 0.216 H 276.8°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5B5BEF
RGBrgb(91, 91, 239)
HSLhsl(240, 82%, 65%)
HSVhsv(240, 62%, 94%)
CMYKcmyk(61.9%, 61.9%, 0%, 6.3%)
CIE-LABlab(46.89, 43.32, -74.61)
CIE-LCHlch(46.89, 86.28, 300.14°)
OKLaboklab(55.99% 0.0257 -0.2149)
OKLCHoklch(55.99% 0.216 276.8)
XYZxyz(23.6304, 15.9364, 83.4754)
Luminance0.1594 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BEF #EFEF5B
analogous
#5BA5EF #5B5BEF #A55BEF
triadic
#5B5BEF #EF5B5B #5BEF5B
tetradic
#5B5BEF #EF5BA5 #EFEF5B #5BEFA5
square
#5B5BEF #EF5BA5 #EFEF5B #5BEFA5
split-complementary
#5B5BEF #EFA55B #A5EF5B
monochromatic
#1212BD #2323EA #5B5BEF #9393F4 #CBCBFA

Accessibility & contrast

On white

5.01
#5B5BEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#5B5BEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BEF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BEF#FFFFFF#000000##FFFFFF
##5B5BEF1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076F4
Deuteranopia (green-blind)
#0069EC
Tritanopia (blue-blind)
#00809D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5bef;
/* rgb */ color: rgb(91, 91, 239);
/* oklch */ color: oklch(56.0% 0.216 276.8);
Tailwind
colors: {
  custom: {
    50: '#988af5',
    500: '#5b5bef',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bef;
$custom-light: #988af5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bef",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 239
  },
  "hsl": {
    "h": 240,
    "s": 82.222,
    "l": 64.706
  },
  "oklch": {
    "l": 0.5599,
    "c": 0.21643,
    "h": 276.8
  },
  "luminance": 0.15938
}

Semantic roles & 50–950 ramp

primary
#5B5BEF
secondary
#ECECBA
accent
#DF07DF
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5BEF

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

Preview Lab → · Contrast checker → · Palette generator →

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