#5180CD#5180CD

#5180CD is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.2% C 0.129 H 259.8°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5180CD
RGBrgb(81, 128, 205)
HSLhsl(217, 55%, 56%)
HSVhsv(217, 60%, 80%)
CMYKcmyk(60.5%, 37.6%, 0%, 19.6%)
CIE-LABlab(53.59, 7.62, -44.66)
CIE-LCHlch(53.59, 45.30, 279.68°)
OKLaboklab(60.21% -0.0228 -0.1267)
OKLCHoklch(60.21% 0.129 259.8)
XYZxyz(22.1281, 21.5935, 60.7476)
Luminance0.2160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5180CD #CD9E51
analogous
#51BECD #5180CD #6051CD
triadic
#5180CD #CD5180 #80CD51
tetradic
#5180CD #CD51BE #CD9E51 #51CD60
square
#5180CD #CD51BE #CD9E51 #51CD60
split-complementary
#5180CD #CD6051 #BECD51
monochromatic
#25477F #3261AF #5180CD #81A3DB #B0C5E8

Accessibility & contrast

On white

3.95
#5180CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5180CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5180CD
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5180CD#FFFFFF#000000##000000
##5180CD1.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F86D0
Deuteranopia (green-blind)
#4E7BCB
Tritanopia (blue-blind)
#00919D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5180cd;
/* rgb */ color: rgb(81, 128, 205);
/* oklch */ color: oklch(60.2% 0.129 259.8);
Tailwind
colors: {
  custom: {
    50: '#8ca4dc',
    500: '#5180cd',
    950: '#000000',
  },
}
SCSS
$custom: #5180cd;
$custom-light: #8ca4dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5180cd",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 205
  },
  "hsl": {
    "h": 217.258,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60214,
    "c": 0.12874,
    "h": 259.8
  },
  "luminance": 0.21595
}

Semantic roles & 50–950 ramp

primary
#5180CD
secondary
#D7C3A3
accent
#A649DF
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5180CD

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

Preview Lab → · Contrast checker → · Palette generator →

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