#5182E1#5182E1

#5182E1 is a mid, vivid blue. Relative luminance 0.232; OKLCH L 61.8% C 0.153 H 262.3°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5182E1
RGBrgb(81, 130, 225)
HSLhsl(220, 71%, 60%)
HSVhsv(220, 64%, 88%)
CMYKcmyk(64%, 42.2%, 0%, 11.8%)
CIE-LABlab(55.23, 13.19, -53.33)
CIE-LCHlch(55.23, 54.94, 283.89°)
OKLaboklab(61.83% -0.0206 -0.1521)
OKLCHoklch(61.83% 0.154 262.3)
XYZxyz(24.9618, 23.1485, 74.3722)
Luminance0.2315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5182E1 #E1B051
analogous
#51CAE1 #5182E1 #6851E1
triadic
#5182E1 #E15182 #82E151
tetradic
#5182E1 #E151CA #E1B051 #51E168
square
#5182E1 #E151CA #E1B051 #51E168
split-complementary
#5182E1 #E16851 #CAE151
monochromatic
#1B479D #245FD1 #5182E1 #85A8EA #B9CDF3

Accessibility & contrast

On white

3.73
#5182E1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#5182E1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5182E1
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5182E1#FFFFFF#000000##000000
##5182E11.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#568BE5
Deuteranopia (green-blind)
#407EDF
Tritanopia (blue-blind)
#0098A6
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5182e1;
/* rgb */ color: rgb(81, 130, 225);
/* oklch */ color: oklch(61.8% 0.153 262.3);
Tailwind
colors: {
  custom: {
    50: '#8fa5eb',
    500: '#5182e1',
    950: '#000000',
  },
}
SCSS
$custom: #5182e1;
$custom-light: #8fa5eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5182e1",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 225
  },
  "hsl": {
    "h": 219.583,
    "s": 70.588,
    "l": 60
  },
  "oklch": {
    "l": 0.61828,
    "c": 0.1535,
    "h": 262.3
  },
  "luminance": 0.23151
}

Semantic roles & 50–950 ramp

primary
#5182E1
secondary
#E3D0AB
accent
#B03AED
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5182E1

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

Preview Lab → · Contrast checker → · Palette generator →

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