#5B7AEB#5B7AEB

#5B7AEB is a mid, vivid blue. Relative luminance 0.221; OKLCH L 61.3% C 0.173 H 269.2°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5B7AEB
RGBrgb(91, 122, 235)
HSLhsl(227, 78%, 64%)
HSVhsv(227, 61%, 92%)
CMYKcmyk(61.3%, 48.1%, 0%, 7.8%)
CIE-LABlab(54.17, 23.20, -60.58)
CIE-LCHlch(54.17, 64.87, 290.95°)
OKLaboklab(61.35% -0.0023 -0.1733)
OKLCHoklch(61.35% 0.173 269.2)
XYZxyz(26.2642, 22.1391, 81.4704)
Luminance0.2214 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7AEB #EBCC5B
analogous
#5BC2EB #5B7AEB #845BEB
triadic
#5B7AEB #EB5B7A #7AEB5B
tetradic
#5B7AEB #EB5BC2 #EBCC5B #5BEB84
square
#5B7AEB #EB5BC2 #EBCC5B #5BEB84
split-complementary
#5B7AEB #EB845B #C2EB5B
monochromatic
#1638B5 #244EE4 #5B7AEB #92A6F2 #C8D2F8

Accessibility & contrast

On white

3.87
#5B7AEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#5B7AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7AEB
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7AEB#FFFFFF#000000##000000
##5B7AEB1.003.875.435.43
#FFFFFF3.871.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#4088EF
Deuteranopia (green-blind)
#237BE9
Tritanopia (blue-blind)
#0094A7
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5b7aeb;
/* rgb */ color: rgb(91, 122, 235);
/* oklch */ color: oklch(61.3% 0.173 269.2);
Tailwind
colors: {
  custom: {
    50: '#96a0f2',
    500: '#5b7aeb',
    950: '#000000',
  },
}
SCSS
$custom: #5b7aeb;
$custom-light: #96a0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7aeb",
  "rgb": {
    "r": 91,
    "g": 122,
    "b": 235
  },
  "hsl": {
    "h": 227.083,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.61346,
    "c": 0.17334,
    "h": 269.2
  },
  "luminance": 0.22141
}

Semantic roles & 50–950 ramp

primary
#5B7AEB
secondary
#EADFB8
accent
#AE0BDB
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5B7AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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