#5B5EF8#5B5EF8

#5B5EF8 is a mid, highly saturated blue. Relative luminance 0.170; OKLCH L 57.2% C 0.224 H 275.8°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5B5EF8
RGBrgb(91, 94, 248)
HSLhsl(239, 92%, 66%)
HSVhsv(239, 63%, 97%)
CMYKcmyk(63.3%, 62.1%, 0%, 2.7%)
CIE-LABlab(48.27, 44.44, -77.41)
CIE-LCHlch(48.27, 89.25, 299.86°)
OKLaboklab(57.22% 0.0228 -0.2231)
OKLCHoklch(57.22% 0.224 275.8)
XYZxyz(25.2548, 17.0047, 90.7401)
Luminance0.1701 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B5EF8 #F8F55B
analogous
#5BACF8 #5B5EF8 #A75BF8
triadic
#5B5EF8 #F85B5E #5EF85B
tetradic
#5B5EF8 #F85BAC #F8F55B #5BF8A7
square
#5B5EF8 #F85BAC #F8F55B #5BF8A7
split-complementary
#5B5EF8 #F8A75B #ACF85B
monochromatic
#090DD0 #2024F5 #5B5EF8 #9698FB #D0D1FD

Accessibility & contrast

On white

4.77
#5B5EF8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#5B5EF8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B5EF8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B5EF8#FFFFFF#000000##FFFFFF
##5B5EF81.004.774.404.77
#FFFFFF4.771.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007AFD
Deuteranopia (green-blind)
#006CF5
Tritanopia (blue-blind)
#0085A2
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #5b5ef8;
/* rgb */ color: rgb(91, 94, 248);
/* oklch */ color: oklch(57.2% 0.224 275.8);
Tailwind
colors: {
  custom: {
    50: '#9a8cfc',
    500: '#5b5ef8',
    950: '#000000',
  },
}
SCSS
$custom: #5b5ef8;
$custom-light: #9a8cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b5ef8",
  "rgb": {
    "r": 91,
    "g": 94,
    "b": 248
  },
  "hsl": {
    "h": 238.854,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.57215,
    "c": 0.22424,
    "h": 275.8
  },
  "luminance": 0.17007
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B5EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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