#5B5BF4#5B5BF4

#5B5BF4 is a mid, highly saturated blue. Relative luminance 0.162; OKLCH L 56.4% C 0.223 H 276.5°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5B5BF4
RGBrgb(91, 91, 244)
HSLhsl(240, 87%, 66%)
HSVhsv(240, 63%, 96%)
CMYKcmyk(62.7%, 62.7%, 0%, 4.3%)
CIE-LABlab(47.28, 44.92, -76.78)
CIE-LCHlch(47.28, 88.95, 300.33°)
OKLaboklab(56.4% 0.0254 -0.2212)
OKLCHoklch(56.4% 0.223 276.5)
XYZxyz(24.3793, 16.2360, 87.4195)
Luminance0.1624 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BF4 #F4F45B
analogous
#5BA7F4 #5B5BF4 #A75BF4
triadic
#5B5BF4 #F45B5B #5BF45B
tetradic
#5B5BF4 #F45BA7 #F4F45B #5BF4A7
square
#5B5BF4 #F45BA7 #F4F45B #5BF4A7
split-complementary
#5B5BF4 #F4A75B #A7F45B
monochromatic
#0D0DC7 #2222F0 #5B5BF4 #9494F8 #CECEFC

Accessibility & contrast

On white

4.94
#5B5BF4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#5B5BF4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BF4
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BF4#FFFFFF#000000##FFFFFF
##5B5BF41.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b5bf4;
/* rgb */ color: rgb(91, 91, 244);
/* oklch */ color: oklch(56.4% 0.223 276.5);
Tailwind
colors: {
  custom: {
    50: '#998af9',
    500: '#5b5bf4',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bf4;
$custom-light: #998af9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bf4",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 244
  },
  "hsl": {
    "h": 240,
    "s": 87.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.56398,
    "c": 0.2227,
    "h": 276.5
  },
  "luminance": 0.16238
}

Semantic roles & 50–950 ramp

primary
#5B5BF4
secondary
#EFEFBC
accent
#E402E4
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C17
muted
#7F7D85

Preview Lab

Preview with #5B5BF4

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

Preview Lab → · Contrast checker → · Palette generator →

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