#5B5BF8#5B5BF8

#5B5BF8 is a mid, highly saturated blue. Relative luminance 0.165; OKLCH L 56.7% C 0.228 H 276.3°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5B5BF8
RGBrgb(91, 91, 248)
HSLhsl(240, 92%, 66%)
HSVhsv(240, 63%, 97%)
CMYKcmyk(63.3%, 63.3%, 0%, 2.7%)
CIE-LABlab(47.60, 46.19, -78.49)
CIE-LCHlch(47.60, 91.08, 300.48°)
OKLaboklab(56.73% 0.0251 -0.2263)
OKLCHoklch(56.73% 0.228 276.3)
XYZxyz(24.9932, 16.4815, 90.6529)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5BF8 #F8F85B
analogous
#5BAAF8 #5B5BF8 #AA5BF8
triadic
#5B5BF8 #F85B5B #5BF85B
tetradic
#5B5BF8 #F85BAA #F8F85B #5BF8AA
square
#5B5BF8 #F85BAA #F8F85B #5BF8AA
split-complementary
#5B5BF8 #F8AA5B #AAF85B
monochromatic
#0909D0 #2020F5 #5B5BF8 #9696FB #D0D0FD

Accessibility & contrast

On white

4.89
#5B5BF8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#5B5BF8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5BF8
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5BF8#FFFFFF#000000##FFFFFF
##5B5BF81.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078FD
Deuteranopia (green-blind)
#006AF5
Tritanopia (blue-blind)
#0083A1
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #5b5bf8;
/* rgb */ color: rgb(91, 91, 248);
/* oklch */ color: oklch(56.7% 0.228 276.3);
Tailwind
colors: {
  custom: {
    50: '#9a8afc',
    500: '#5b5bf8',
    950: '#000000',
  },
}
SCSS
$custom: #5b5bf8;
$custom-light: #9a8afc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5bf8",
  "rgb": {
    "r": 91,
    "g": 91,
    "b": 248
  },
  "hsl": {
    "h": 240,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.56729,
    "c": 0.22768,
    "h": 276.3
  },
  "luminance": 0.16484
}

Semantic roles & 50–950 ramp

primary
#5B5BF8
secondary
#F1F1BE
accent
#E600E5
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C18
muted
#7F7D86

Preview Lab

Preview with #5B5BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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