#5181DD#5181DD

#5181DD is a mid, vivid blue. Relative luminance 0.227; OKLCH L 61.4% C 0.149 H 262.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5181DD
RGBrgb(81, 129, 221)
HSLhsl(219, 67%, 59%)
HSVhsv(219, 63%, 87%)
CMYKcmyk(63.3%, 41.6%, 0%, 13.3%)
CIE-LABlab(54.73, 12.43, -51.88)
CIE-LCHlch(54.73, 53.35, 283.48°)
OKLaboklab(61.37% -0.0204 -0.1479)
OKLCHoklch(61.37% 0.149 262.1)
XYZxyz(24.2902, 22.6680, 71.4879)
Luminance0.2267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181DD #DDAD51
analogous
#51C7DD #5181DD #6751DD
triadic
#5181DD #DD5181 #81DD51
tetradic
#5181DD #DD51C7 #DDAD51 #51DD67
square
#5181DD #DD51C7 #DDAD51 #51DD67
split-complementary
#5181DD #DD6751 #C7DD51
monochromatic
#1D4796 #275FC9 #5181DD #84A6E7 #B7CBF1

Accessibility & contrast

On white

3.79
#5181DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#5181DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181DD
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181DD#FFFFFF#000000##000000
##5181DD1.003.795.535.53
#FFFFFF3.791.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#578AE1
Deuteranopia (green-blind)
#427DDB
Tritanopia (blue-blind)
#0096A4
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5181dd;
/* rgb */ color: rgb(81, 129, 221);
/* oklch */ color: oklch(61.4% 0.149 262.1);
Tailwind
colors: {
  custom: {
    50: '#8ea5e8',
    500: '#5181dd',
    950: '#000000',
  },
}
SCSS
$custom: #5181dd;
$custom-light: #8ea5e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5181dd",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 221
  },
  "hsl": {
    "h": 219.429,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.61373,
    "c": 0.14926,
    "h": 262.1
  },
  "luminance": 0.2267
}

Semantic roles & 50–950 ramp

primary
#5181DD
secondary
#E0CEAA
accent
#AF3EEA
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5181DD

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

Preview Lab → · Contrast checker → · Palette generator →

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