#5B5AF2#5B5AF2

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

Color values

HEX#5B5AF2
RGBrgb(91, 90, 242)
HSLhsl(240, 85%, 65%)
HSVhsv(240, 63%, 95%)
CMYKcmyk(62.4%, 62.8%, 0%, 5.1%)
CIE-LABlab(46.90, 44.86, -76.28)
CIE-LCHlch(46.90, 88.49, 300.46°)
OKLaboklab(56.07% 0.0263 -0.2198)
OKLCHoklch(56.07% 0.221 276.8)
XYZxyz(23.9924, 15.9453, 85.8006)
Luminance0.1595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5AF2 #F1F25A
analogous
#5AA5F2 #5B5AF2 #A75AF2
triadic
#5B5AF2 #F25B5A #5AF25B
tetradic
#5B5AF2 #F25AA5 #F1F25A #5AF2A7
square
#5B5AF2 #F25AA5 #F1F25A #5AF2A7
split-complementary
#5B5AF2 #F2A75A #A5F25A
monochromatic
#100FC2 #2321EE #5B5AF2 #9393F6 #CCCBFB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B5AF2#FFFFFF#000000##FFFFFF
##5B5AF21.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)
#0076F7
Deuteranopia (green-blind)
#0069EF
Tritanopia (blue-blind)
#00819E
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #5b5af2;
/* rgb */ color: rgb(91, 90, 242);
/* oklch */ color: oklch(56.1% 0.221 276.8);
Tailwind
colors: {
  custom: {
    50: '#9989f7',
    500: '#5b5af2',
    950: '#000000',
  },
}
SCSS
$custom: #5b5af2;
$custom-light: #9989f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5af2",
  "rgb": {
    "r": 91,
    "g": 90,
    "b": 242
  },
  "hsl": {
    "h": 240.395,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.56072,
    "c": 0.22136,
    "h": 276.8
  },
  "luminance": 0.15947
}

Semantic roles & 50–950 ramp

primary
#5B5AF2
secondary
#EDEEBA
accent
#E204E0
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B5AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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