#5F87BF#5F87BF

#5F87BF is a mid, moderate blue. Relative luminance 0.235; OKLCH L 61.8% C 0.096 H 256.9°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5F87BF
RGBrgb(95, 135, 191)
HSLhsl(215, 43%, 56%)
HSVhsv(215, 50%, 75%)
CMYKcmyk(50.3%, 29.3%, 0%, 25.1%)
CIE-LABlab(55.60, 1.96, -33.49)
CIE-LCHlch(55.60, 33.55, 273.35°)
OKLaboklab(61.75% -0.0218 -0.094)
OKLCHoklch(61.75% 0.096 256.9)
XYZxyz(22.7841, 23.5208, 52.6195)
Luminance0.2352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87BF #BF975F
analogous
#5FB7BF #5F87BF #675FBF
triadic
#5F87BF #BF5F87 #87BF5F
tetradic
#5F87BF #BF5FB7 #BF975F #5FBF67
square
#5F87BF #BF5FB7 #BF975F #5FBF67
split-complementary
#5F87BF #BF675F #B7BF5F
monochromatic
#2F4C75 #4068A1 #5F87BF #8BA8D0 #B6C9E2

Accessibility & contrast

On white

3.68
#5F87BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#5F87BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87BF
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87BF#FFFFFF#000000##000000
##5F87BF1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#718AC1
Deuteranopia (green-blind)
#6681BE
Tritanopia (blue-blind)
#32939B
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5f87bf;
/* rgb */ color: rgb(95, 135, 191);
/* oklch */ color: oklch(61.8% 0.096 256.9);
Tailwind
colors: {
  custom: {
    50: '#92a9d2',
    500: '#5f87bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f87bf;
$custom-light: #92a9d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87bf",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 191
  },
  "hsl": {
    "h": 215,
    "s": 42.857,
    "l": 56.078
  },
  "oklch": {
    "l": 0.61753,
    "c": 0.09646,
    "h": 256.9
  },
  "luminance": 0.23522
}

Semantic roles & 50–950 ramp

primary
#5F87BF
secondary
#D1C0A9
accent
#9E55D3
background
#F9FAFC
surface
#F2F4F9
border
#CCCED2
text
#0D0F14
muted
#7E7F82

Preview Lab

Preview with #5F87BF

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

Preview Lab → · Contrast checker → · Palette generator →

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