#5180C8#5180C8

#5180C8 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 59.9% C 0.122 H 258.7°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5180C8
RGBrgb(81, 128, 200)
HSLhsl(216, 52%, 55%)
HSVhsv(216, 60%, 78%)
CMYKcmyk(59.5%, 36%, 0%, 21.6%)
CIE-LABlab(53.34, 5.95, -42.22)
CIE-LCHlch(53.34, 42.64, 278.02°)
OKLaboklab(59.93% -0.024 -0.1196)
OKLCHoklch(59.93% 0.122 258.7)
XYZxyz(21.5342, 21.3559, 57.6197)
Luminance0.2136 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5180C8 #C89951
analogous
#51BBC8 #5180C8 #5E51C8
triadic
#5180C8 #C85180 #80C851
tetradic
#5180C8 #C851BB #C89951 #51C85E
square
#5180C8 #C851BB #C89951 #51C85E
split-complementary
#5180C8 #C85E51 #BBC851
monochromatic
#264779 #3562A7 #5180C8 #80A2D7 #AEC4E5

Accessibility & contrast

On white

3.98
#5180C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5180C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5180C8
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5180C8#FFFFFF#000000##000000
##5180C81.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6285CB
Deuteranopia (green-blind)
#527AC6
Tritanopia (blue-blind)
#00909A
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5180c8;
/* rgb */ color: rgb(81, 128, 200);
/* oklch */ color: oklch(59.9% 0.122 258.7);
Tailwind
colors: {
  custom: {
    50: '#8ba4d9',
    500: '#5180c8',
    950: '#000000',
  },
}
SCSS
$custom: #5180c8;
$custom-light: #8ba4d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5180c8",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 200
  },
  "hsl": {
    "h": 216.303,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.59931,
    "c": 0.12198,
    "h": 258.7
  },
  "luminance": 0.21358
}

Semantic roles & 50–950 ramp

primary
#5180C8
secondary
#D3C0A1
accent
#A34CDB
background
#F9FAFD
surface
#F1F4FA
border
#CBCED3
text
#0D0F14
muted
#7E7F83

Preview Lab

Preview with #5180C8

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

Preview Lab → · Contrast checker → · Palette generator →

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