#5F87CB#5F87CB

#5F87CB is a light, moderate blue. Relative luminance 0.241; OKLCH L 62.4% C 0.113 H 260.5°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5F87CB
RGBrgb(95, 135, 203)
HSLhsl(218, 51%, 58%)
HSVhsv(218, 53%, 80%)
CMYKcmyk(53.2%, 33.5%, 0%, 20.4%)
CIE-LABlab(56.16, 5.70, -39.43)
CIE-LCHlch(56.16, 39.84, 278.22°)
OKLaboklab(62.37% -0.0185 -0.1112)
OKLCHoklch(62.37% 0.113 260.5)
XYZxyz(24.1591, 24.0708, 59.8614)
Luminance0.2407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87CB #CBA35F
analogous
#5FBDCB #5F87CB #6D5FCB
triadic
#5F87CB #CB5F87 #87CB5F
tetradic
#5F87CB #CB5FBD #CBA35F #5FCB6D
square
#5F87CB #CB5FBD #CBA35F #5FCB6D
split-complementary
#5F87CB #CB6D5F #BDCB5F
monochromatic
#2B4C85 #3A67B3 #5F87CB #8DAADA #BBCCE9

Accessibility & contrast

On white

3.61
#5F87CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#5F87CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87CB
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87CB#FFFFFF#000000##000000
##5F87CB1.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C8CCE
Deuteranopia (green-blind)
#5F82CA
Tritanopia (blue-blind)
#2596A0
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5f87cb;
/* rgb */ color: rgb(95, 135, 203);
/* oklch */ color: oklch(62.4% 0.113 260.5);
Tailwind
colors: {
  custom: {
    50: '#93a9db',
    500: '#5f87cb',
    950: '#000000',
  },
}
SCSS
$custom: #5f87cb;
$custom-light: #93a9db;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87cb",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 217.778,
    "s": 50.943,
    "l": 58.431
  },
  "oklch": {
    "l": 0.62367,
    "c": 0.1127,
    "h": 260.5
  },
  "luminance": 0.24073
}

Semantic roles & 50–950 ramp

primary
#5F87CB
secondary
#D8C8AD
accent
#A64DDA
background
#F9FAFD
surface
#F2F4FB
border
#CCCED4
text
#0E0F15
muted
#7E7F83

Preview Lab

Preview with #5F87CB

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

Preview Lab → · Contrast checker → · Palette generator →

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