#5B5AF4#5B5AF4

#5B5AF4 is a mid, highly saturated blue. Relative luminance 0.161; OKLCH L 56.2% C 0.224 H 276.7°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#5B5AF4
RGBrgb(91, 90, 244)
HSLhsl(240, 88%, 65%)
HSVhsv(240, 63%, 96%)
CMYKcmyk(62.7%, 63.1%, 0%, 4.3%)
CIE-LABlab(47.06, 45.50, -77.14)
CIE-LCHlch(47.06, 89.56, 300.53°)
OKLaboklab(56.24% 0.0262 -0.2223)
OKLCHoklch(56.24% 0.224 276.7)
XYZxyz(24.2944, 16.0661, 87.3912)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AF4 #F3F45A
analogous
#5AA6F4 #5B5AF4 #A85AF4
triadic
#5B5AF4 #F45B5A #5AF45B
tetradic
#5B5AF4 #F45AA6 #F3F45A #5AF4A8
square
#5B5AF4 #F45AA6 #F3F45A #5AF4A8
split-complementary
#5B5AF4 #F4A85A #A6F45A
monochromatic
#0E0DC6 #2221F0 #5B5AF4 #9493F8 #CDCDFC

Accessibility & contrast

On white

4.98
#5B5AF4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#5B5AF4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5AF4
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5AF4#FFFFFF#000000##FFFFFF
##5B5AF41.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b5af4;
/* rgb */ color: rgb(91, 90, 244);
/* oklch */ color: oklch(56.2% 0.224 276.7);
Tailwind
colors: {
  custom: {
    50: '#9989f9',
    500: '#5b5af4',
    950: '#000000',
  },
}
SCSS
$custom: #5b5af4;
$custom-light: #9989f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5af4",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 244
  },
  "hsl": {
    "h": 240.39,
    "s": 87.5,
    "l": 65.49
  },
  "oklch": {
    "l": 0.56237,
    "c": 0.22385,
    "h": 276.7
  },
  "luminance": 0.16068
}

Semantic roles & 50–950 ramp

primary
#5B5AF4
secondary
#EEEFBB
accent
#E401E3
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5AF4

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

Preview Lab → · Contrast checker → · Palette generator →

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