#5F87B2#5F87B2

#5F87B2 is a mid, moderate cyan. Relative luminance 0.230; OKLCH L 61.1% C 0.079 H 251.0°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#5F87B2
RGBrgb(95, 135, 178)
HSLhsl(211, 35%, 54%)
HSVhsv(211, 47%, 70%)
CMYKcmyk(46.6%, 24.2%, 0%, 30.2%)
CIE-LABlab(55.05, -1.97, -26.94)
CIE-LCHlch(55.05, 27.01, 265.81°)
OKLaboklab(61.13% -0.0259 -0.0751)
OKLCHoklch(61.13% 0.079 251)
XYZxyz(21.4165, 22.9738, 45.4167)
Luminance0.2298 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F87B2 #B28A5F
analogous
#5FB0B2 #5F87B2 #605FB2
triadic
#5F87B2 #B25F87 #87B25F
tetradic
#5F87B2 #B25FB0 #B28A5F #5FB260
square
#5F87B2 #B25FB0 #B28A5F #5FB260
split-complementary
#5F87B2 #B2605F #B0B25F
monochromatic
#314A66 #45698F #5F87B2 #88A6C6 #B2C5DA

Accessibility & contrast

On white

3.75
#5F87B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#5F87B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5F87B2
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F87B2#FFFFFF#000000##000000
##5F87B21.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#7688B4
Deuteranopia (green-blind)
#6C80B1
Tritanopia (blue-blind)
#3C9196
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5f87b2;
/* rgb */ color: rgb(95, 135, 178);
/* oklch */ color: oklch(61.1% 0.079 251.0);
Tailwind
colors: {
  custom: {
    50: '#90a9c9',
    500: '#5f87b2',
    950: '#000000',
  },
}
SCSS
$custom: #5f87b2;
$custom-light: #90a9c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f87b2",
  "rgb": {
    "r": 95,
    "g": 135,
    "b": 178
  },
  "hsl": {
    "h": 211.084,
    "s": 35.021,
    "l": 53.529
  },
  "oklch": {
    "l": 0.6113,
    "c": 0.07945,
    "h": 251
  },
  "luminance": 0.22975
}

Semantic roles & 50–950 ramp

primary
#5F87B2
secondary
#C8B7A5
accent
#965DCB
background
#F9FAFC
surface
#F1F4F8
border
#CBCED1
text
#0D0F13
muted
#7E7F82

Preview Lab

Preview with #5F87B2

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

Preview Lab → · Contrast checker → · Palette generator →

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