#5B87F4#5B87F4

#5B87F4 is a light, vivid blue. Relative luminance 0.261; OKLCH L 64.5% C 0.170 H 265.4°. Best body text is #000000 at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#5B87F4
RGBrgb(91, 135, 244)
HSLhsl(223, 87%, 66%)
HSVhsv(223, 63%, 96%)
CMYKcmyk(62.7%, 44.7%, 0%, 4.3%)
CIE-LABlab(58.11, 18.31, -59.26)
CIE-LCHlch(58.11, 62.02, 287.17°)
OKLaboklab(64.53% -0.0136 -0.1693)
OKLCHoklch(64.53% 0.17 265.4)
XYZxyz(29.3018, 26.0811, 89.0604)
Luminance0.2608 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B87F4 #F4C85B
analogous
#5BD4F4 #5B87F4 #7B5BF4
triadic
#5B87F4 #F45B87 #87F45B
tetradic
#5B87F4 #F45BD4 #F4C85B #5BF47B
square
#5B87F4 #F45BD4 #F4C85B #5BF47B
split-complementary
#5B87F4 #F47B5B #D4F45B
monochromatic
#0D43C7 #225DF0 #5B87F4 #94B1F8 #CEDBFC

Accessibility & contrast

On white

3.38
#5B87F4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.22
#5B87F4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B87F4
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B87F4#FFFFFF#000000##000000
##5B87F41.003.386.226.22
#FFFFFF3.381.0021.0021.00
#0000006.2221.001.001.00
##0000006.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5393F8
Deuteranopia (green-blind)
#3985F2
Tritanopia (blue-blind)
#00A0B2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5b87f4;
/* rgb */ color: rgb(91, 135, 244);
/* oklch */ color: oklch(64.5% 0.170 265.4);
Tailwind
colors: {
  custom: {
    50: '#97a9f8',
    500: '#5b87f4',
    950: '#000000',
  },
}
SCSS
$custom: #5b87f4;
$custom-light: #97a9f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b87f4",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 222.745,
    "s": 87.429,
    "l": 65.686
  },
  "oklch": {
    "l": 0.64526,
    "c": 0.16982,
    "h": 265.4
  },
  "luminance": 0.26084
}

Semantic roles & 50–950 ramp

primary
#5B87F4
secondary
#EFE0BC
accent
#A302E4
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5B87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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