#5B5DF8#5B5DF8

#5B5DF8 is a mid, highly saturated blue. Relative luminance 0.168; OKLCH L 57.1% C 0.225 H 276.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5B5DF8
RGBrgb(91, 93, 248)
HSLhsl(239, 92%, 66%)
HSVhsv(239, 63%, 97%)
CMYKcmyk(63.3%, 62.5%, 0%, 2.7%)
CIE-LABlab(48.04, 45.02, -77.77)
CIE-LCHlch(48.04, 89.86, 300.07°)
OKLaboklab(57.05% 0.0235 -0.2242)
OKLCHoklch(57.05% 0.225 276)
XYZxyz(25.1665, 16.8281, 90.7107)
Luminance0.1683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5DF8 #F8F65B
analogous
#5BACF8 #5B5DF8 #A85BF8
triadic
#5B5DF8 #F85B5D #5DF85B
tetradic
#5B5DF8 #F85BAC #F8F65B #5BF8A8
square
#5B5DF8 #F85BAC #F8F65B #5BF8A8
split-complementary
#5B5DF8 #F8A85B #ACF85B
monochromatic
#090BD0 #2023F5 #5B5DF8 #9697FB #D0D1FD

Accessibility & contrast

On white

4.81
#5B5DF8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#5B5DF8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5DF8
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5DF8#FFFFFF#000000##FFFFFF
##5B5DF81.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0079FD
Deuteranopia (green-blind)
#006BF5
Tritanopia (blue-blind)
#0084A2
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5b5df8;
/* rgb */ color: rgb(91, 93, 248);
/* oklch */ color: oklch(57.1% 0.225 276.0);
Tailwind
colors: {
  custom: {
    50: '#9a8bfc',
    500: '#5b5df8',
    950: '#000000',
  },
}
SCSS
$custom: #5b5df8;
$custom-light: #9a8bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5df8",
  "rgb": {
    "r": 91,
    "g": 93,
    "b": 248
  },
  "hsl": {
    "h": 239.236,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.57052,
    "c": 0.22539,
    "h": 276
  },
  "luminance": 0.1683
}

Semantic roles & 50–950 ramp

primary
#5B5DF8
secondary
#F1F0BE
accent
#E300E6
background
#FAF8FF
surface
#F4F0FF
border
#CECBD7
text
#0F0C18
muted
#7F7D86

Preview Lab

Preview with #5B5DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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