#5187CB#5187CB

#5187CB is a mid, moderate cyan. Relative luminance 0.234; OKLCH L 61.6% C 0.119 H 255.0°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#5187CB
RGBrgb(81, 135, 203)
HSLhsl(213, 54%, 56%)
HSVhsv(213, 60%, 80%)
CMYKcmyk(60.1%, 33.5%, 0%, 20.4%)
CIE-LABlab(55.47, 2.77, -40.56)
CIE-LCHlch(55.47, 40.66, 273.90°)
OKLaboklab(61.64% -0.0308 -0.1147)
OKLCHoklch(61.64% 0.119 255)
XYZxyz(22.8330, 23.3870, 59.7992)
Luminance0.2339 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5187CB #CB9551
analogous
#51C4CB #5187CB #5851CB
triadic
#5187CB #CB5187 #87CB51
tetradic
#5187CB #CB51C4 #CB9551 #51CB58
square
#5187CB #CB51C4 #CB9551 #51CB58
split-complementary
#5187CB #CB5851 #C4CB51
monochromatic
#254C7C #3368AC #5187CB #80A7D9 #AFC8E7

Accessibility & contrast

On white

3.70
#5187CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#5187CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5187CB
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5187CB#FFFFFF#000000##000000
##5187CB1.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A8BCE
Deuteranopia (green-blind)
#5A80CA
Tritanopia (blue-blind)
#0096A0
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5187cb;
/* rgb */ color: rgb(81, 135, 203);
/* oklch */ color: oklch(61.6% 0.119 255.0);
Tailwind
colors: {
  custom: {
    50: '#8ca9db',
    500: '#5187cb',
    950: '#000000',
  },
}
SCSS
$custom: #5187cb;
$custom-light: #8ca9db;
$custom-dark: #000000;
JSON
{
  "hex": "#5187cb",
  "rgb": {
    "r": 81,
    "g": 135,
    "b": 203
  },
  "hsl": {
    "h": 213.443,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.61643,
    "c": 0.11875,
    "h": 255
  },
  "luminance": 0.23389
}

Semantic roles & 50–950 ramp

primary
#5187CB
secondary
#D5BFA3
accent
#9C4ADD
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5187CB

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

Preview Lab → · Contrast checker → · Palette generator →

#5187CB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva