#5180CE#5180CE

#5180CE is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.3% C 0.130 H 260.0°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#5180CE
RGBrgb(81, 128, 206)
HSLhsl(217, 56%, 56%)
HSVhsv(217, 61%, 81%)
CMYKcmyk(60.7%, 37.9%, 0%, 19.2%)
CIE-LABlab(53.65, 7.96, -45.14)
CIE-LCHlch(53.65, 45.84, 280.00°)
OKLaboklab(60.27% -0.0225 -0.1281)
OKLCHoklch(60.27% 0.13 260)
XYZxyz(22.2492, 21.6419, 61.3854)
Luminance0.2164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5180CE #CE9F51
analogous
#51BFCE #5180CE #6151CE
triadic
#5180CE #CE5180 #80CE51
tetradic
#5180CE #CE51BF #CE9F51 #51CE61
square
#5180CE #CE51BF #CE9F51 #51CE61
split-complementary
#5180CE #CE6151 #BFCE51
monochromatic
#244780 #3261B0 #5180CE #81A3DB #B1C6E9

Accessibility & contrast

On white

3.94
#5180CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.33
#5180CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5180CE
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5180CE#FFFFFF#000000##000000
##5180CE1.003.945.335.33
#FFFFFF3.941.0021.0021.00
#0000005.3321.001.001.00
##0000005.3321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5180ce;
/* rgb */ color: rgb(81, 128, 206);
/* oklch */ color: oklch(60.3% 0.130 260.0);
Tailwind
colors: {
  custom: {
    50: '#8ca4dd',
    500: '#5180ce',
    950: '#000000',
  },
}
SCSS
$custom: #5180ce;
$custom-light: #8ca4dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5180ce",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 206
  },
  "hsl": {
    "h": 217.44,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.60271,
    "c": 0.1301,
    "h": 260
  },
  "luminance": 0.21644
}

Semantic roles & 50–950 ramp

primary
#5180CE
secondary
#D7C4A4
accent
#A748DF
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5180CE

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

Preview Lab → · Contrast checker → · Palette generator →

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