#5180E9#5180E9

#5180E9 is a mid, vivid blue. Relative luminance 0.231; OKLCH L 61.9% C 0.167 H 264.0°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5180E9
RGBrgb(81, 128, 233)
HSLhsl(221, 78%, 62%)
HSVhsv(221, 65%, 91%)
CMYKcmyk(65.2%, 45.1%, 0%, 8.6%)
CIE-LABlab(55.14, 17.15, -57.94)
CIE-LCHlch(55.14, 60.42, 286.49°)
OKLaboklab(61.91% -0.0173 -0.1657)
OKLCHoklch(61.91% 0.167 264)
XYZxyz(25.8153, 23.0684, 80.1672)
Luminance0.2307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5180E9 #E9BA51
analogous
#51CCE9 #5180E9 #6E51E9
triadic
#5180E9 #E95180 #80E951
tetradic
#5180E9 #E951CC #E9BA51 #51E96E
square
#5180E9 #E951CC #E9BA51 #51E96E
split-complementary
#5180E9 #E96E51 #CCE951
monochromatic
#1643AA #1C59E0 #5180E9 #87A8F0 #BECFF7

Accessibility & contrast

On white

3.74
#5180E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#5180E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5180E9
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5180E9#FFFFFF#000000##000000
##5180E91.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C8BED
Deuteranopia (green-blind)
#317DE7
Tritanopia (blue-blind)
#0098A9
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5180e9;
/* rgb */ color: rgb(81, 128, 233);
/* oklch */ color: oklch(61.9% 0.167 264.0);
Tailwind
colors: {
  custom: {
    50: '#90a4f1',
    500: '#5180e9',
    950: '#000000',
  },
}
SCSS
$custom: #5180e9;
$custom-light: #90a4f1;
$custom-dark: #000000;
JSON
{
  "hex": "#5180e9",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 233
  },
  "hsl": {
    "h": 221.447,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.61913,
    "c": 0.16656,
    "h": 264
  },
  "luminance": 0.23071
}

Semantic roles & 50–950 ramp

primary
#5180E9
secondary
#E7D6AF
accent
#9A0CDA
background
#F9FAFE
surface
#F2F3FD
border
#CCCDD5
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5180E9

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

Preview Lab → · Contrast checker → · Palette generator →

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