#5182CB#5182CB

#5182CB is a mid, vivid blue. Relative luminance 0.220; OKLCH L 60.5% C 0.124 H 258.2°. Best body text is #000000 at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5182CB
RGBrgb(81, 130, 203)
HSLhsl(216, 54%, 56%)
HSVhsv(216, 60%, 80%)
CMYKcmyk(60.1%, 36%, 0%, 20.4%)
CIE-LABlab(54.05, 5.75, -42.80)
CIE-LCHlch(54.05, 43.18, 277.65°)
OKLaboklab(60.54% -0.0254 -0.1212)
OKLCHoklch(60.54% 0.124 258.2)
XYZxyz(22.1517, 22.0244, 59.5721)
Luminance0.2203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5182CB #CB9A51
analogous
#51BFCB #5182CB #5D51CB
triadic
#5182CB #CB5182 #82CB51
tetradic
#5182CB #CB51BF #CB9A51 #51CB5D
square
#5182CB #CB51BF #CB9A51 #51CB5D
split-complementary
#5182CB #CB5D51 #BFCB51
monochromatic
#25487C #3364AC #5182CB #80A4D9 #AFC6E7

Accessibility & contrast

On white

3.89
#5182CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5182CB#FFFFFF#000000##000000
##5182CB1.003.895.415.41
#FFFFFF3.891.0021.0021.00
#0000005.4121.001.001.00
##0000005.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6387CE
Deuteranopia (green-blind)
#537CC9
Tritanopia (blue-blind)
#00929D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5182cb;
/* rgb */ color: rgb(81, 130, 203);
/* oklch */ color: oklch(60.5% 0.124 258.2);
Tailwind
colors: {
  custom: {
    50: '#8ca5db',
    500: '#5182cb',
    950: '#000000',
  },
}
SCSS
$custom: #5182cb;
$custom-light: #8ca5db;
$custom-dark: #000000;
JSON
{
  "hex": "#5182cb",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 203
  },
  "hsl": {
    "h": 215.902,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.60538,
    "c": 0.12388,
    "h": 258.2
  },
  "luminance": 0.22026
}

Semantic roles & 50–950 ramp

primary
#5182CB
secondary
#D5C1A3
accent
#A24ADD
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5182CB

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

Preview Lab → · Contrast checker → · Palette generator →

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