#5180F2#5180F2

#5180F2 is a light, vivid blue. Relative luminance 0.236; OKLCH L 62.5% C 0.179 H 264.9°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#5180F2
RGBrgb(81, 128, 242)
HSLhsl(222, 86%, 63%)
HSVhsv(222, 67%, 95%)
CMYKcmyk(66.5%, 47.1%, 0%, 5.1%)
CIE-LABlab(55.68, 20.26, -62.08)
CIE-LCHlch(55.68, 65.30, 288.07°)
OKLaboklab(62.5% -0.016 -0.1778)
OKLCHoklch(62.5% 0.179 264.9)
XYZxyz(27.1339, 23.5958, 87.1117)
Luminance0.2360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5180F2 #F2C351
analogous
#51D1F2 #5180F2 #7251F2
triadic
#5180F2 #F25180 #80F251
tetradic
#5180F2 #F251D1 #F2C351 #51F272
square
#5180F2 #F251D1 #F2C351 #51F272
split-complementary
#5180F2 #F27251 #D1F251
monochromatic
#0E40BB #1856EE #5180F2 #8AAAF6 #C3D3FB

Accessibility & contrast

On white

3.67
#5180F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#5180F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5180F2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5180F2#FFFFFF#000000##000000
##5180F21.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#448DF6
Deuteranopia (green-blind)
#1F7EF0
Tritanopia (blue-blind)
#009BAD
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5180f2;
/* rgb */ color: rgb(81, 128, 242);
/* oklch */ color: oklch(62.5% 0.179 264.9);
Tailwind
colors: {
  custom: {
    50: '#92a4f7',
    500: '#5180f2',
    950: '#000000',
  },
}
SCSS
$custom: #5180f2;
$custom-light: #92a4f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5180f2",
  "rgb": {
    "r": 81,
    "g": 128,
    "b": 242
  },
  "hsl": {
    "h": 222.484,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62498,
    "c": 0.17857,
    "h": 264.9
  },
  "luminance": 0.23598
}

Semantic roles & 50–950 ramp

primary
#5180F2
secondary
#ECDBB3
accent
#A103E3
background
#F9FAFF
surface
#F2F3FF
border
#CCCDD7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5180F2

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

Preview Lab → · Contrast checker → · Palette generator →

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