#5B87F1#5B87F1

#5B87F1 is a light, vivid blue. Relative luminance 0.259; OKLCH L 64.3% C 0.166 H 265.1°. Best body text is #000000 at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#5B87F1
RGBrgb(91, 135, 241)
HSLhsl(222, 84%, 65%)
HSVhsv(222, 62%, 95%)
CMYKcmyk(62.2%, 44%, 0%, 5.5%)
CIE-LABlab(57.94, 17.31, -57.87)
CIE-LCHlch(57.94, 60.41, 286.65°)
OKLaboklab(64.34% -0.0141 -0.1652)
OKLCHoklch(64.34% 0.166 265.1)
XYZxyz(28.8501, 25.9004, 86.6809)
Luminance0.2590 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B87F1 #F1C55B
analogous
#5BD2F1 #5B87F1 #7A5BF1
triadic
#5B87F1 #F15B87 #87F15B
tetradic
#5B87F1 #F15BD2 #F1C55B #5BF17A
square
#5B87F1 #F15BD2 #F1C55B #5BF17A
split-complementary
#5B87F1 #F17A5B #D2F15B
monochromatic
#1044C1 #235EEC #5B87F1 #93B0F6 #CCDAFB

Accessibility & contrast

On white

3.40
#5B87F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.18
#5B87F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B87F1
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B87F1#FFFFFF#000000##000000
##5B87F11.003.406.186.18
#FFFFFF3.401.0021.0021.00
#0000006.1821.001.001.00
##0000006.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5593F5
Deuteranopia (green-blind)
#3D85EF
Tritanopia (blue-blind)
#009FB0
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5b87f1;
/* rgb */ color: rgb(91, 135, 241);
/* oklch */ color: oklch(64.3% 0.166 265.1);
Tailwind
colors: {
  custom: {
    50: '#96a9f6',
    500: '#5b87f1',
    950: '#000000',
  },
}
SCSS
$custom: #5b87f1;
$custom-light: #96a9f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b87f1",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 222.4,
    "s": 84.27,
    "l": 65.098
  },
  "oklch": {
    "l": 0.64339,
    "c": 0.1658,
    "h": 265.1
  },
  "luminance": 0.25903
}

Semantic roles & 50–950 ramp

primary
#5B87F1
secondary
#EDDEBA
accent
#A005E1
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5B87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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