#5180E6#5180E6

#5180E6 is a mid, vivid blue. Relative luminance 0.229; OKLCH L 61.7% C 0.163 H 263.7°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5180E6
RGBrgb(81, 128, 230)
HSLhsl(221, 75%, 61%)
HSVhsv(221, 65%, 90%)
CMYKcmyk(64.8%, 44.3%, 0%, 9.8%)
CIE-LABlab(54.97, 16.12, -56.54)
CIE-LCHlch(54.97, 58.80, 285.92°)
OKLaboklab(61.72% -0.0178 -0.1616)
OKLCHoklch(61.72% 0.163 263.7)
XYZxyz(25.3904, 22.8984, 77.9293)
Luminance0.2290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5180E6 #E6B751
analogous
#51CAE6 #5180E6 #6C51E6
triadic
#5180E6 #E65180 #80E651
tetradic
#5180E6 #E651CA #E6B751 #51E66C
square
#5180E6 #E651CA #E6B751 #51E66C
split-complementary
#5180E6 #E66C51 #CAE651
monochromatic
#1844A5 #1F5ADA #5180E6 #87A7EE #BCCEF5

Accessibility & contrast

On white

3.76
#5180E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#5180E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5180E6
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5180E6#FFFFFF#000000##000000
##5180E61.003.765.585.58
#FFFFFF3.761.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4F8BEA
Deuteranopia (green-blind)
#357DE4
Tritanopia (blue-blind)
#0097A8
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5180e6;
/* rgb */ color: rgb(81, 128, 230);
/* oklch */ color: oklch(61.7% 0.163 263.7);
Tailwind
colors: {
  custom: {
    50: '#90a4ee',
    500: '#5180e6',
    950: '#000000',
  },
}
SCSS
$custom: #5180e6;
$custom-light: #90a4ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5180e6",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 230
  },
  "hsl": {
    "h": 221.074,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.61722,
    "c": 0.16254,
    "h": 263.7
  },
  "luminance": 0.22901
}

Semantic roles & 50–950 ramp

primary
#5180E6
secondary
#E5D4AD
accent
#980ED7
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5180E6

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

Preview Lab → · Contrast checker → · Palette generator →

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