#5181D9#5181D9

#5181D9 is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.1% C 0.144 H 261.5°. Best body text is #000000 at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5181D9
RGBrgb(81, 129, 217)
HSLhsl(219, 64%, 58%)
HSVhsv(219, 63%, 85%)
CMYKcmyk(62.7%, 40.6%, 0%, 14.9%)
CIE-LABlab(54.51, 11.07, -49.98)
CIE-LCHlch(54.51, 51.20, 282.49°)
OKLaboklab(61.13% -0.0212 -0.1423)
OKLCHoklch(61.13% 0.144 261.5)
XYZxyz(23.7636, 22.4574, 68.7146)
Luminance0.2246 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181D9 #D9A951
analogous
#51C5D9 #5181D9 #6551D9
triadic
#5181D9 #D95181 #81D951
tetradic
#5181D9 #D951C5 #D9A951 #51D965
square
#5181D9 #D951C5 #D9A951 #51D965
split-complementary
#5181D9 #D96551 #C5D951
monochromatic
#1F4790 #2A60C2 #5181D9 #83A5E4 #B5CAEF

Accessibility & contrast

On white

3.82
#5181D9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.49
#5181D9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181D9
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181D9#FFFFFF#000000##000000
##5181D91.003.825.495.49
#FFFFFF3.821.0021.0021.00
#0000005.4921.001.001.00
##0000005.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A89DC
Deuteranopia (green-blind)
#467DD7
Tritanopia (blue-blind)
#0095A2
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5181d9;
/* rgb */ color: rgb(81, 129, 217);
/* oklch */ color: oklch(61.1% 0.144 261.5);
Tailwind
colors: {
  custom: {
    50: '#8ea5e5',
    500: '#5181d9',
    950: '#000000',
  },
}
SCSS
$custom: #5181d9;
$custom-light: #8ea5e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5181d9",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 217
  },
  "hsl": {
    "h": 218.824,
    "s": 64.151,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61132,
    "c": 0.14386,
    "h": 261.5
  },
  "luminance": 0.2246
}

Semantic roles & 50–950 ramp

primary
#5181D9
secondary
#DECBA8
accent
#AC41E7
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5181D9

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

Preview Lab → · Contrast checker → · Palette generator →

#5181D9 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva