#5182F2#5182F2

#5182F2 is a light, vivid blue. Relative luminance 0.241; OKLCH L 62.9% C 0.176 H 264.2°. Best body text is #000000 at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#5182F2
RGBrgb(81, 130, 242)
HSLhsl(222, 86%, 63%)
HSVhsv(222, 67%, 95%)
CMYKcmyk(66.5%, 46.3%, 0%, 5.1%)
CIE-LABlab(56.21, 19.04, -61.23)
CIE-LCHlch(56.21, 64.12, 287.27°)
OKLaboklab(62.9% -0.0178 -0.1753)
OKLCHoklch(62.9% 0.176 264.2)
XYZxyz(27.3974, 24.1227, 87.1995)
Luminance0.2412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5182F2 #F2C151
analogous
#51D2F2 #5182F2 #7051F2
triadic
#5182F2 #F25182 #82F251
tetradic
#5182F2 #F251D2 #F2C151 #51F270
square
#5182F2 #F251D2 #F2C151 #51F270
split-complementary
#5182F2 #F27051 #D2F251
monochromatic
#0E43BB #1859EE #5182F2 #8AABF6 #C3D4FB

Accessibility & contrast

On white

3.61
#5182F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.83
#5182F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5182F2
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5182F2#FFFFFF#000000##000000
##5182F21.003.615.835.83
#FFFFFF3.611.0021.0021.00
#0000005.8321.001.001.00
##0000005.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#488FF6
Deuteranopia (green-blind)
#2780F0
Tritanopia (blue-blind)
#009CAE
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #5182f2;
/* rgb */ color: rgb(81, 130, 242);
/* oklch */ color: oklch(62.9% 0.176 264.2);
Tailwind
colors: {
  custom: {
    50: '#92a5f7',
    500: '#5182f2',
    950: '#000000',
  },
}
SCSS
$custom: #5182f2;
$custom-light: #92a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#5182f2",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 242
  },
  "hsl": {
    "h": 221.739,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.62904,
    "c": 0.17621,
    "h": 264.2
  },
  "luminance": 0.24125
}

Semantic roles & 50–950 ramp

primary
#5182F2
secondary
#ECDBB3
accent
#9F03E3
background
#F9FAFF
surface
#F2F4FF
border
#CCCED7
text
#0E0F17
muted
#7E7F85

Preview Lab

Preview with #5182F2

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

Preview Lab → · Contrast checker → · Palette generator →

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