#5180CF#5180CF

#5180CF is a mid, vivid blue. Relative luminance 0.217; OKLCH L 60.3% C 0.131 H 260.2°. Best body text is #000000 at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#5180CF
RGBrgb(81, 128, 207)
HSLhsl(218, 57%, 56%)
HSVhsv(218, 61%, 81%)
CMYKcmyk(60.9%, 38.2%, 0%, 18.8%)
CIE-LABlab(53.70, 8.29, -45.63)
CIE-LCHlch(53.70, 46.37, 280.30°)
OKLaboklab(60.33% -0.0223 -0.1295)
OKLCHoklch(60.33% 0.131 260.2)
XYZxyz(22.3710, 21.6907, 62.0272)
Luminance0.2169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5180CF #CFA051
analogous
#51BFCF #5180CF #6151CF
triadic
#5180CF #CF5180 #80CF51
tetradic
#5180CF #CF51BF #CFA051 #51CF61
square
#5180CF #CF51BF #CFA051 #51CF61
split-complementary
#5180CF #CF6151 #BFCF51
monochromatic
#244782 #3161B2 #5180CF #81A3DC #B1C6E9

Accessibility & contrast

On white

3.93
#5180CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.34
#5180CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5180CF
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5180CF#FFFFFF#000000##000000
##5180CF1.003.935.345.34
#FFFFFF3.931.0021.0021.00
#0000005.3421.001.001.00
##0000005.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E87D2
Deuteranopia (green-blind)
#4D7BCD
Tritanopia (blue-blind)
#00929D
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5180cf;
/* rgb */ color: rgb(81, 128, 207);
/* oklch */ color: oklch(60.3% 0.131 260.2);
Tailwind
colors: {
  custom: {
    50: '#8ca4de',
    500: '#5180cf',
    950: '#000000',
  },
}
SCSS
$custom: #5180cf;
$custom-light: #8ca4de;
$custom-dark: #000000;
JSON
{
  "hex": "#5180cf",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 207
  },
  "hsl": {
    "h": 217.619,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60329,
    "c": 0.13145,
    "h": 260.2
  },
  "luminance": 0.21693
}

Semantic roles & 50–950 ramp

primary
#5180CF
secondary
#D8C4A4
accent
#A748E0
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5180CF

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

Preview Lab → · Contrast checker → · Palette generator →

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