#5B7BF5#5B7BF5

#5B7BF5 is a light, vivid blue. Relative luminance 0.230; OKLCH L 62.2% C 0.186 H 269.3°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5B7BF5
RGBrgb(91, 123, 245)
HSLhsl(228, 89%, 66%)
HSVhsv(228, 63%, 96%)
CMYKcmyk(62.9%, 49.8%, 0%, 3.9%)
CIE-LABlab(55.05, 25.93, -64.73)
CIE-LCHlch(55.05, 69.73, 291.83°)
OKLaboklab(62.21% -0.0022 -0.1855)
OKLCHoklch(62.21% 0.186 269.3)
XYZxyz(27.8732, 22.9802, 89.3352)
Luminance0.2298 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7BF5 #F5D55B
analogous
#5BC8F5 #5B7BF5 #885BF5
triadic
#5B7BF5 #F55B7B #7BF55B
tetradic
#5B7BF5 #F55BC8 #F5D55B #5BF588
square
#5B7BF5 #F55BC8 #F5D55B #5BF588
split-complementary
#5B7BF5 #F5885B #C8F55B
monochromatic
#0C34C9 #214DF1 #5B7BF5 #95A9F9 #CED8FC

Accessibility & contrast

On white

3.75
#5B7BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#5B7BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7BF5
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7BF5#FFFFFF#000000##000000
##5B7BF51.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#368BF9
Deuteranopia (green-blind)
#027DF2
Tritanopia (blue-blind)
#0097AC
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5b7bf5;
/* rgb */ color: rgb(91, 123, 245);
/* oklch */ color: oklch(62.2% 0.186 269.3);
Tailwind
colors: {
  custom: {
    50: '#97a0f9',
    500: '#5b7bf5',
    950: '#000000',
  },
}
SCSS
$custom: #5b7bf5;
$custom-light: #97a0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7bf5",
  "rgb": {
    "r": 91,
    "g": 123,
    "b": 245
  },
  "hsl": {
    "h": 227.532,
    "s": 88.506,
    "l": 65.882
  },
  "oklch": {
    "l": 0.6221,
    "c": 0.18553,
    "h": 269.3
  },
  "luminance": 0.22983
}

Semantic roles & 50–950 ramp

primary
#5B7BF5
secondary
#EFE5BC
accent
#B600E5
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E17
muted
#7F7E85

Preview Lab

Preview with #5B7BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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