#5B87FE#5B87FE

#5B87FE is a light, vivid blue. Relative luminance 0.267; OKLCH L 65.2% C 0.183 H 266.2°. Best body text is #000000 at 6.34:1 contrast (WCAG AA passes).

Color values

HEX#5B87FE
RGBrgb(91, 135, 254)
HSLhsl(224, 99%, 68%)
HSVhsv(224, 64%, 100%)
CMYKcmyk(64.2%, 46.9%, 0%, 0.4%)
CIE-LABlab(58.70, 21.68, -63.83)
CIE-LCHlch(58.70, 67.41, 288.76°)
OKLaboklab(65.16% -0.0122 -0.1827)
OKLCHoklch(65.16% 0.183 266.2)
XYZxyz(30.8616, 26.7050, 97.2749)
Luminance0.2671 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B87FE #FED25B
analogous
#5BD8FE #5B87FE #815BFE
triadic
#5B87FE #FE5B87 #87FE5B
tetradic
#5B87FE #FE5BD8 #FED25B #5BFE81
square
#5B87FE #FE5BD8 #FED25B #5BFE81
split-complementary
#5B87FE #FE815B #D8FE5B
monochromatic
#013DDD #1E5AFE #5B87FE #98B4FE #D5E0FF

Accessibility & contrast

On white

3.31
#5B87FE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.34
#5B87FE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B87FE
6.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B87FE#FFFFFF#000000##000000
##5B87FE1.003.316.346.34
#FFFFFF3.311.0021.0021.00
#0000006.3421.001.001.00
##0000006.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A95FF
Deuteranopia (green-blind)
#2886FC
Tritanopia (blue-blind)
#00A2B6
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5b87fe;
/* rgb */ color: rgb(91, 135, 254);
/* oklch */ color: oklch(65.2% 0.183 266.2);
Tailwind
colors: {
  custom: {
    50: '#98a9ff',
    500: '#5b87fe',
    950: '#000000',
  },
}
SCSS
$custom: #5b87fe;
$custom-light: #98a9ff;
$custom-dark: #000000;
JSON
{
  "hex": "#5b87fe",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 223.804,
    "s": 98.788,
    "l": 67.647
  },
  "oklch": {
    "l": 0.65163,
    "c": 0.18312,
    "h": 266.2
  },
  "luminance": 0.26708
}

Semantic roles & 50–950 ramp

primary
#5B87FE
secondary
#F4E6C1
accent
#A800E6
background
#FAFAFF
surface
#F4F4FF
border
#CECED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5B87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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