#5182D2#5182D2

#5182D2 is a mid, vivid blue. Relative luminance 0.224; OKLCH L 60.9% C 0.133 H 259.7°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#5182D2
RGBrgb(81, 130, 210)
HSLhsl(217, 59%, 57%)
HSVhsv(217, 61%, 82%)
CMYKcmyk(61.4%, 38.1%, 0%, 17.6%)
CIE-LABlab(54.41, 8.10, -46.19)
CIE-LCHlch(54.41, 46.89, 279.94°)
OKLaboklab(60.94% -0.0237 -0.1312)
OKLCHoklch(60.94% 0.133 259.7)
XYZxyz(23.0047, 22.3657, 64.0650)
Luminance0.2237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5182D2 #D2A151
analogous
#51C3D2 #5182D2 #6151D2
triadic
#5182D2 #D25182 #82D251
tetradic
#5182D2 #D251C3 #D2A151 #51D261
square
#5182D2 #D251C3 #D2A151 #51D261
split-complementary
#5182D2 #D26151 #C3D251
monochromatic
#234886 #2F63B7 #5182D2 #82A5DF #B2C8EB

Accessibility & contrast

On white

3.84
#5182D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#5182D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5182D2
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5182D2#FFFFFF#000000##000000
##5182D21.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F89D5
Deuteranopia (green-blind)
#4E7DD0
Tritanopia (blue-blind)
#0094A0
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5182d2;
/* rgb */ color: rgb(81, 130, 210);
/* oklch */ color: oklch(60.9% 0.133 259.7);
Tailwind
colors: {
  custom: {
    50: '#8da5e0',
    500: '#5182d2',
    950: '#000000',
  },
}
SCSS
$custom: #5182d2;
$custom-light: #8da5e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5182d2",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 210
  },
  "hsl": {
    "h": 217.209,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60936,
    "c": 0.1333,
    "h": 259.7
  },
  "luminance": 0.22368
}

Semantic roles & 50–950 ramp

primary
#5182D2
secondary
#DAC6A5
accent
#A746E2
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5182D2

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

Preview Lab → · Contrast checker → · Palette generator →

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