#5F87E9#5F87E9

#5F87E9 is a light, vivid blue. Relative luminance 0.256; OKLCH L 64.1% C 0.154 H 265.6°. Best body text is #000000 at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5F87E9
RGBrgb(95, 135, 233)
HSLhsl(223, 76%, 64%)
HSVhsv(223, 59%, 91%)
CMYKcmyk(59.2%, 42.1%, 0%, 8.6%)
CIE-LABlab(57.70, 15.38, -53.82)
CIE-LCHlch(57.70, 55.97, 285.95°)
OKLaboklab(64.06% -0.0119 -0.1532)
OKLCHoklch(64.06% 0.154 265.6)
XYZxyz(28.0862, 25.6417, 80.5442)
Luminance0.2564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87E9 #E9C15F
analogous
#5FCCE9 #5F87E9 #7C5FE9
triadic
#5F87E9 #E95F87 #87E95F
tetradic
#5F87E9 #E95FCC #E9C15F #5FE97C
square
#5F87E9 #E95FCC #E9C15F #5FE97C
split-complementary
#5F87E9 #E97C5F #CCE95F
monochromatic
#1946B5 #295FE2 #5F87E9 #95AFF0 #CBD8F8

Accessibility & contrast

On white

3.43
#5F87E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.13
#5F87E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87E9
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87E9#FFFFFF#000000##000000
##5F87E91.003.436.136.13
#FFFFFF3.431.0021.0021.00
#0000006.1321.001.001.00
##0000006.1321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B91ED
Deuteranopia (green-blind)
#4885E7
Tritanopia (blue-blind)
#009DAD
Achromatopsia (no color)
#8B8B8B

Design tokens & code

CSS
--color: #5f87e9;
/* rgb */ color: rgb(95, 135, 233);
/* oklch */ color: oklch(64.1% 0.154 265.6);
Tailwind
colors: {
  custom: {
    50: '#97a9f0',
    500: '#5f87e9',
    950: '#000000',
  },
}
SCSS
$custom: #5f87e9;
$custom-light: #97a9f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87e9",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 233
  },
  "hsl": {
    "h": 222.609,
    "s": 75.824,
    "l": 64.314
  },
  "oklch": {
    "l": 0.64058,
    "c": 0.15368,
    "h": 265.6
  },
  "luminance": 0.25644
}

Semantic roles & 50–950 ramp

primary
#5F87E9
secondary
#EADCBA
accent
#9D0DD8
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0F0F17
muted
#7E7F85

Preview Lab

Preview with #5F87E9

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

Preview Lab → · Contrast checker → · Palette generator →

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