#5B7AF5#5B7AF5

#5B7AF5 is a light, vivid blue. Relative luminance 0.227; OKLCH L 62.0% C 0.187 H 269.6°. Best body text is #000000 at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5B7AF5
RGBrgb(91, 122, 245)
HSLhsl(228, 89%, 66%)
HSVhsv(228, 63%, 96%)
CMYKcmyk(62.9%, 50.2%, 0%, 3.9%)
CIE-LABlab(54.80, 26.54, -65.14)
CIE-LCHlch(54.80, 70.34, 292.17°)
OKLaboklab(62.02% -0.0013 -0.1867)
OKLCHoklch(62.02% 0.187 269.6)
XYZxyz(27.7498, 22.7333, 89.2941)
Luminance0.2274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B7AF5 #F5D65B
analogous
#5BC7F5 #5B7AF5 #895BF5
triadic
#5B7AF5 #F55B7A #7AF55B
tetradic
#5B7AF5 #F55BC7 #F5D65B #5BF589
square
#5B7AF5 #F55BC7 #F5D65B #5BF589
split-complementary
#5B7AF5 #F5895B #C7F55B
monochromatic
#0C32C9 #214BF1 #5B7AF5 #95A9F9 #CED8FC

Accessibility & contrast

On white

3.79
#5B7AF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.55
#5B7AF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B7AF5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B7AF5#FFFFFF#000000##000000
##5B7AF51.003.795.555.55
#FFFFFF3.791.0021.0021.00
#0000005.5521.001.001.00
##0000005.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#338AF9
Deuteranopia (green-blind)
#007DF2
Tritanopia (blue-blind)
#0097AC
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5b7af5;
/* rgb */ color: rgb(91, 122, 245);
/* oklch */ color: oklch(62.0% 0.187 269.6);
Tailwind
colors: {
  custom: {
    50: '#97a0f9',
    500: '#5b7af5',
    950: '#000000',
  },
}
SCSS
$custom: #5b7af5;
$custom-light: #97a0f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b7af5",
  "rgb": {
    "r": 91,
    "g": 122,
    "b": 245
  },
  "hsl": {
    "h": 227.922,
    "s": 88.506,
    "l": 65.882
  },
  "oklch": {
    "l": 0.62017,
    "c": 0.18674,
    "h": 269.6
  },
  "luminance": 0.22736
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B7AF5

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

Preview Lab → · Contrast checker → · Palette generator →

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