#5182DB#5182DB

#5182DB is a mid, vivid blue. Relative luminance 0.228; OKLCH L 61.5% C 0.145 H 261.4°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#5182DB
RGBrgb(81, 130, 219)
HSLhsl(219, 66%, 59%)
HSVhsv(219, 63%, 86%)
CMYKcmyk(63%, 40.6%, 0%, 14.1%)
CIE-LABlab(54.89, 11.14, -50.50)
CIE-LCHlch(54.89, 51.71, 282.45°)
OKLaboklab(61.47% -0.0218 -0.1438)
OKLCHoklch(61.47% 0.145 261.4)
XYZxyz(24.1577, 22.8268, 70.1370)
Luminance0.2283 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5182DB #DBAA51
analogous
#51C7DB #5182DB #6551DB
triadic
#5182DB #DB5182 #82DB51
tetradic
#5182DB #DB51C7 #DBAA51 #51DB65
square
#5182DB #DB51C7 #DBAA51 #51DB65
split-complementary
#5182DB #DB6551 #C7DB51
monochromatic
#1E4893 #2961C6 #5182DB #84A6E5 #B6CBF0

Accessibility & contrast

On white

3.77
#5182DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#5182DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5182DB
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5182DB#FFFFFF#000000##000000
##5182DB1.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A8ADE
Deuteranopia (green-blind)
#467DD9
Tritanopia (blue-blind)
#0096A4
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5182db;
/* rgb */ color: rgb(81, 130, 219);
/* oklch */ color: oklch(61.5% 0.145 261.4);
Tailwind
colors: {
  custom: {
    50: '#8ea5e6',
    500: '#5182db',
    950: '#000000',
  },
}
SCSS
$custom: #5182db;
$custom-light: #8ea5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5182db",
  "rgb": {
    "r": 81,
    "g": 130,
    "b": 219
  },
  "hsl": {
    "h": 218.696,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61465,
    "c": 0.14543,
    "h": 261.4
  },
  "luminance": 0.22829
}

Semantic roles & 50–950 ramp

primary
#5182DB
secondary
#DFCCA9
accent
#AC3FE9
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5182DB

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

Preview Lab → · Contrast checker → · Palette generator →

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