#5987F5#5987F5

#5987F5 is a light, vivid blue. Relative luminance 0.260; OKLCH L 64.5% C 0.172 H 264.9°. Best body text is #000000 at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#5987F5
RGBrgb(89, 135, 245)
HSLhsl(222, 89%, 65%)
HSVhsv(222, 64%, 96%)
CMYKcmyk(63.7%, 44.9%, 0%, 3.9%)
CIE-LABlab(58.08, 18.31, -59.88)
CIE-LCHlch(58.08, 62.61, 287.01°)
OKLaboklab(64.49% -0.0152 -0.1711)
OKLCHoklch(64.49% 0.172 264.9)
XYZxyz(29.2595, 26.0417, 89.8531)
Luminance0.2604 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5987F5 #F5C759
analogous
#59D5F5 #5987F5 #7959F5
triadic
#5987F5 #F55987 #87F559
tetradic
#5987F5 #F559D5 #F5C759 #59F579
square
#5987F5 #F559D5 #F5C759 #59F579
split-complementary
#5987F5 #F57959 #D5F559
monochromatic
#0C43C8 #1F5DF2 #5987F5 #93B1F8 #CCDAFC

Accessibility & contrast

On white

3.38
#5987F5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.21
#5987F5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5987F5
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5987F5#FFFFFF#000000##000000
##5987F51.003.386.216.21
#FFFFFF3.381.0021.0021.00
#0000006.2121.001.001.00
##0000006.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5193F9
Deuteranopia (green-blind)
#3685F3
Tritanopia (blue-blind)
#00A0B2
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5987f5;
/* rgb */ color: rgb(89, 135, 245);
/* oklch */ color: oklch(64.5% 0.172 264.9);
Tailwind
colors: {
  custom: {
    50: '#96a9f9',
    500: '#5987f5',
    950: '#000000',
  },
}
SCSS
$custom: #5987f5;
$custom-light: #96a9f9;
$custom-dark: #000000;
JSON
{
  "hex": "#5987f5",
  "rgb": {
    "r": 89,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 222.308,
    "s": 88.636,
    "l": 65.49
  },
  "oklch": {
    "l": 0.6449,
    "c": 0.1718,
    "h": 264.9
  },
  "luminance": 0.26044
}

Semantic roles & 50–950 ramp

primary
#5987F5
secondary
#EFE0BB
accent
#A200E5
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5987F5

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

Preview Lab → · Contrast checker → · Palette generator →

#5987F5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva