#5B5BF3#5B5BF3

#5B5BF3 is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.3% C 0.221 H 276.6°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5B5BF3
RGBrgb(91, 91, 243)
HSLhsl(240, 86%, 65%)
HSVhsv(240, 63%, 95%)
CMYKcmyk(62.6%, 62.6%, 0%, 4.7%)
CIE-LABlab(47.20, 44.60, -76.35)
CIE-LCHlch(47.20, 88.42, 300.29°)
OKLaboklab(56.32% 0.0254 -0.22)
OKLCHoklch(56.32% 0.221 276.6)
XYZxyz(24.2279, 16.1754, 86.6221)
Luminance0.1618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BF3 #F3F35B
analogous
#5BA7F3 #5B5BF3 #A75BF3
triadic
#5B5BF3 #F35B5B #5BF35B
tetradic
#5B5BF3 #F35BA7 #F3F35B #5BF3A7
square
#5B5BF3 #F35BA7 #F3F35B #5BF3A7
split-complementary
#5B5BF3 #F3A75B #A7F35B
monochromatic
#0E0EC5 #2222EF #5B5BF3 #9494F7 #CDCDFB

Accessibility & contrast

On white

4.96
#5B5BF3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#5B5BF3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BF3
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BF3#FFFFFF#000000##FFFFFF
##5B5BF31.004.964.244.96
#FFFFFF4.961.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F8
Deuteranopia (green-blind)
#0069F0
Tritanopia (blue-blind)
#00829F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #5b5bf3;
/* rgb */ color: rgb(91, 91, 243);
/* oklch */ color: oklch(56.3% 0.221 276.6);
Tailwind
colors: {
  custom: {
    50: '#998af8',
    500: '#5b5bf3',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bf3;
$custom-light: #998af8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bf3",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 243
  },
  "hsl": {
    "h": 240,
    "s": 86.364,
    "l": 65.49
  },
  "oklch": {
    "l": 0.56316,
    "c": 0.22146,
    "h": 276.6
  },
  "luminance": 0.16177
}

Semantic roles & 50–950 ramp

primary
#5B5BF3
secondary
#EEEEBB
accent
#E303E3
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5BF3

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

Preview Lab → · Contrast checker → · Palette generator →

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