#5182CD#5182CD

#5182CD is a mid, vivid blue. Relative luminance 0.221; OKLCH L 60.7% C 0.127 H 258.6°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5182CD
RGBrgb(81, 130, 205)
HSLhsl(216, 55%, 56%)
HSVhsv(216, 60%, 80%)
CMYKcmyk(60.5%, 36.6%, 0%, 19.6%)
CIE-LABlab(54.15, 6.42, -43.77)
CIE-LCHlch(54.15, 44.24, 278.34°)
OKLaboklab(60.65% -0.0249 -0.1241)
OKLCHoklch(60.65% 0.127 258.6)
XYZxyz(22.3915, 22.1204, 60.8354)
Luminance0.2212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5182CD #CD9C51
analogous
#51C0CD #5182CD #5E51CD
triadic
#5182CD #CD5182 #82CD51
tetradic
#5182CD #CD51C0 #CD9C51 #51CD5E
square
#5182CD #CD51C0 #CD9C51 #51CD5E
split-complementary
#5182CD #CD5E51 #C0CD51
monochromatic
#25487F #3263AF #5182CD #81A4DB #B0C6E8

Accessibility & contrast

On white

3.87
#5182CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#5182CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5182CD
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5182CD#FFFFFF#000000##000000
##5182CD1.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6288D0
Deuteranopia (green-blind)
#517CCB
Tritanopia (blue-blind)
#00939E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5182cd;
/* rgb */ color: rgb(81, 130, 205);
/* oklch */ color: oklch(60.7% 0.127 258.6);
Tailwind
colors: {
  custom: {
    50: '#8ca5dc',
    500: '#5182cd',
    950: '#000000',
  },
}
SCSS
$custom: #5182cd;
$custom-light: #8ca5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5182cd",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 205
  },
  "hsl": {
    "h": 216.29,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.60651,
    "c": 0.12657,
    "h": 258.6
  },
  "luminance": 0.22122
}

Semantic roles & 50–950 ramp

primary
#5182CD
secondary
#D7C2A3
accent
#A449DF
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5182CD

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

Preview Lab → · Contrast checker → · Palette generator →

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