#5987FA#5987FA

#5987FA is a light, vivid blue. Relative luminance 0.264; OKLCH L 64.8% C 0.178 H 265.3°. Best body text is #000000 at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#5987FA
RGBrgb(89, 135, 250)
HSLhsl(223, 94%, 66%)
HSVhsv(223, 64%, 98%)
CMYKcmyk(64.4%, 46%, 0%, 2%)
CIE-LABlab(58.37, 20.00, -62.17)
CIE-LCHlch(58.37, 65.31, 287.84°)
OKLaboklab(64.81% -0.0145 -0.1779)
OKLCHoklch(64.81% 0.178 265.3)
XYZxyz(30.0331, 26.3511, 93.9275)
Luminance0.2635 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5987FA #FACC59
analogous
#59D8FA #5987FA #7C59FA
triadic
#5987FA #FA5987 #87FA59
tetradic
#5987FA #FA59D8 #FACC59 #59FA7C
square
#5987FA #FA59D8 #FACC59 #59FA7C
split-complementary
#5987FA #FA7C59 #D8FA59
monochromatic
#0641D2 #1E5CF8 #5987FA #94B2FC #D0DDFE

Accessibility & contrast

On white

3.35
#5987FA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.27
#5987FA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5987FA
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5987FA#FFFFFF#000000##000000
##5987FA1.003.356.276.27
#FFFFFF3.351.0021.0021.00
#0000006.2721.001.001.00
##0000006.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D94FE
Deuteranopia (green-blind)
#2E85F8
Tritanopia (blue-blind)
#00A1B4
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #5987fa;
/* rgb */ color: rgb(89, 135, 250);
/* oklch */ color: oklch(64.8% 0.178 265.3);
Tailwind
colors: {
  custom: {
    50: '#97a9fd',
    500: '#5987fa',
    950: '#000000',
  },
}
SCSS
$custom: #5987fa;
$custom-light: #97a9fd;
$custom-dark: #000000;
JSON
{
  "hex": "#5987fa",
  "rgb": {
    "r": 89,
    "g": 135,
    "b": 250
  },
  "hsl": {
    "h": 222.857,
    "s": 94.152,
    "l": 66.471
  },
  "oklch": {
    "l": 0.64808,
    "c": 0.17845,
    "h": 265.3
  },
  "luminance": 0.26354
}

Semantic roles & 50–950 ramp

primary
#5987FA
secondary
#F1E3BD
accent
#A400E6
background
#FAFAFF
surface
#F3F4FF
border
#CDCED7
text
#0F0F18
muted
#7F7F86

Preview Lab

Preview with #5987FA

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

Preview Lab → · Contrast checker → · Palette generator →

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