#5180CB#5180CB

#5180CB is a mid, vivid blue. Relative luminance 0.215; OKLCH L 60.1% C 0.126 H 259.4°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5180CB
RGBrgb(81, 128, 203)
HSLhsl(217, 54%, 56%)
HSVhsv(217, 60%, 80%)
CMYKcmyk(60.1%, 36.9%, 0%, 20.4%)
CIE-LABlab(53.49, 6.95, -43.69)
CIE-LCHlch(53.49, 44.24, 279.04°)
OKLaboklab(60.1% -0.0232 -0.1239)
OKLCHoklch(60.1% 0.126 259.4)
XYZxyz(21.8882, 21.4975, 59.4843)
Luminance0.2150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5180CB #CB9C51
analogous
#51BDCB #5180CB #5F51CB
triadic
#5180CB #CB5180 #80CB51
tetradic
#5180CB #CB51BD #CB9C51 #51CB5F
square
#5180CB #CB51BD #CB9C51 #51CB5F
split-complementary
#5180CB #CB5F51 #BDCB51
monochromatic
#25477C #3362AC #5180CB #80A2D9 #AFC5E7

Accessibility & contrast

On white

3.96
#5180CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#5180CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5180CB
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5180CB#FFFFFF#000000##000000
##5180CB1.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6086CE
Deuteranopia (green-blind)
#507BC9
Tritanopia (blue-blind)
#00919C
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5180cb;
/* rgb */ color: rgb(81, 128, 203);
/* oklch */ color: oklch(60.1% 0.126 259.4);
Tailwind
colors: {
  custom: {
    50: '#8ca4db',
    500: '#5180cb',
    950: '#000000',
  },
}
SCSS
$custom: #5180cb;
$custom-light: #8ca4db;
$custom-dark: #000000;
JSON
{
  "hex": "#5180cb",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 203
  },
  "hsl": {
    "h": 216.885,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.601,
    "c": 0.12603,
    "h": 259.4
  },
  "luminance": 0.21499
}

Semantic roles & 50–950 ramp

primary
#5180CB
secondary
#D5C2A3
accent
#A54ADD
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5180CB

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

Preview Lab → · Contrast checker → · Palette generator →

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