#5B87F2#5B87F2

#5B87F2 is a light, vivid blue. Relative luminance 0.260; OKLCH L 64.4% C 0.167 H 265.2°. Best body text is #000000 at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#5B87F2
RGBrgb(91, 135, 242)
HSLhsl(223, 85%, 65%)
HSVhsv(223, 62%, 95%)
CMYKcmyk(62.4%, 44.2%, 0%, 5.1%)
CIE-LABlab(58.00, 17.64, -58.34)
CIE-LCHlch(58.00, 60.95, 286.83°)
OKLaboklab(64.4% -0.0139 -0.1666)
OKLCHoklch(64.4% 0.167 265.2)
XYZxyz(28.9998, 25.9603, 87.4698)
Luminance0.2596 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B87F2 #F2C65B
analogous
#5BD2F2 #5B87F2 #7B5BF2
triadic
#5B87F2 #F25B87 #87F25B
tetradic
#5B87F2 #F25BD2 #F2C65B #5BF27B
square
#5B87F2 #F25BD2 #F2C65B #5BF27B
split-complementary
#5B87F2 #F27B5B #D2F25B
monochromatic
#0F44C3 #225EEE #5B87F2 #94B0F6 #CCDAFB

Accessibility & contrast

On white

3.39
#5B87F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.19
#5B87F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B87F2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B87F2#FFFFFF#000000##000000
##5B87F21.003.396.196.19
#FFFFFF3.391.0021.0021.00
#0000006.1921.001.001.00
##0000006.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5493F6
Deuteranopia (green-blind)
#3C85F0
Tritanopia (blue-blind)
#009FB1
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5b87f2;
/* rgb */ color: rgb(91, 135, 242);
/* oklch */ color: oklch(64.4% 0.167 265.2);
Tailwind
colors: {
  custom: {
    50: '#96a9f7',
    500: '#5b87f2',
    950: '#000000',
  },
}
SCSS
$custom: #5b87f2;
$custom-light: #96a9f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b87f2",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 222.517,
    "s": 85.311,
    "l": 65.294
  },
  "oklch": {
    "l": 0.64401,
    "c": 0.16714,
    "h": 265.2
  },
  "luminance": 0.25963
}

Semantic roles & 50–950 ramp

primary
#5B87F2
secondary
#EEDFBB
accent
#A104E2
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5B87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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