#5182CC#5182CC

#5182CC is a mid, vivid blue. Relative luminance 0.221; OKLCH L 60.6% C 0.125 H 258.4°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5182CC
RGBrgb(81, 130, 204)
HSLhsl(216, 55%, 56%)
HSVhsv(216, 60%, 80%)
CMYKcmyk(60.3%, 36.3%, 0%, 20%)
CIE-LABlab(54.10, 6.08, -43.28)
CIE-LCHlch(54.10, 43.71, 278.00°)
OKLaboklab(60.59% -0.0251 -0.1227)
OKLCHoklch(60.59% 0.125 258.4)
XYZxyz(22.2712, 22.0723, 60.2017)
Luminance0.2207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5182CC #CC9B51
analogous
#51BFCC #5182CC #5D51CC
triadic
#5182CC #CC5182 #82CC51
tetradic
#5182CC #CC51BF #CC9B51 #51CC5D
square
#5182CC #CC51BF #CC9B51 #51CC5D
split-complementary
#5182CC #CC5D51 #BFCC51
monochromatic
#25487E #3363AD #5182CC #80A4DA #B0C6E8

Accessibility & contrast

On white

3.88
#5182CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.41
#5182CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5182CC
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5182CC#FFFFFF#000000##000000
##5182CC1.003.885.415.41
#FFFFFF3.881.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6388CF
Deuteranopia (green-blind)
#527CCA
Tritanopia (blue-blind)
#00939D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5182cc;
/* rgb */ color: rgb(81, 130, 204);
/* oklch */ color: oklch(60.6% 0.125 258.4);
Tailwind
colors: {
  custom: {
    50: '#8ca5dc',
    500: '#5182cc',
    950: '#000000',
  },
}
SCSS
$custom: #5182cc;
$custom-light: #8ca5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5182cc",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 204
  },
  "hsl": {
    "h": 216.098,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60594,
    "c": 0.12522,
    "h": 258.4
  },
  "luminance": 0.22074
}

Semantic roles & 50–950 ramp

primary
#5182CC
secondary
#D6C2A3
accent
#A34ADE
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5182CC

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

Preview Lab → · Contrast checker → · Palette generator →

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