#5B87FA#5B87FA

#5B87FA is a light, vivid blue. Relative luminance 0.265; OKLCH L 64.9% C 0.178 H 265.9°. Best body text is #000000 at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5B87FA
RGBrgb(91, 135, 250)
HSLhsl(223, 94%, 67%)
HSVhsv(223, 64%, 98%)
CMYKcmyk(63.6%, 46%, 0%, 2%)
CIE-LABlab(58.46, 20.33, -62.01)
CIE-LCHlch(58.46, 65.26, 288.15°)
OKLaboklab(64.91% -0.0127 -0.1774)
OKLCHoklch(64.91% 0.178 265.9)
XYZxyz(30.2277, 26.4514, 93.9366)
Luminance0.2645 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B87FA #FACE5B
analogous
#5BD7FA #5B87FA #7F5BFA
triadic
#5B87FA #FA5B87 #87FA5B
tetradic
#5B87FA #FA5BD7 #FACE5B #5BFA7F
square
#5B87FA #FA5BD7 #FACE5B #5BFA7F
split-complementary
#5B87FA #FA7F5B #D7FA5B
monochromatic
#063FD4 #205CF8 #5B87FA #96B2FC #D2DEFE

Accessibility & contrast

On white

3.34
#5B87FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.29
#5B87FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5B87FA
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B87FA#FFFFFF#000000##000000
##5B87FA1.003.346.296.29
#FFFFFF3.341.0021.0021.00
#0000006.2921.001.001.00
##0000006.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D94FE
Deuteranopia (green-blind)
#3086F8
Tritanopia (blue-blind)
#00A1B4
Achromatopsia (no color)
#8D8D8D

Design tokens & code

CSS
--color: #5b87fa;
/* rgb */ color: rgb(91, 135, 250);
/* oklch */ color: oklch(64.9% 0.178 265.9);
Tailwind
colors: {
  custom: {
    50: '#98a9fd',
    500: '#5b87fa',
    950: '#000000',
  },
}
SCSS
$custom: #5b87fa;
$custom-light: #98a9fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b87fa",
  "rgb": {
    "r": 91,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 223.396,
    "s": 94.083,
    "l": 66.863
  },
  "oklch": {
    "l": 0.64906,
    "c": 0.17782,
    "h": 265.9
  },
  "luminance": 0.26454
}

Semantic roles & 50–950 ramp

primary
#5B87FA
secondary
#F2E4BF
accent
#A600E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5B87FA

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

Preview Lab → · Contrast checker → · Palette generator →

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