#5181DC#5181DC

#5181DC is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.3% C 0.148 H 262.0°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5181DC
RGBrgb(81, 129, 220)
HSLhsl(219, 67%, 59%)
HSVhsv(219, 63%, 86%)
CMYKcmyk(63.2%, 41.4%, 0%, 13.7%)
CIE-LABlab(54.67, 12.09, -51.41)
CIE-LCHlch(54.67, 52.81, 283.24°)
OKLaboklab(61.31% -0.0206 -0.1465)
OKLCHoklch(61.31% 0.148 262)
XYZxyz(24.1573, 22.6149, 70.7883)
Luminance0.2262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181DC #DCAC51
analogous
#51C6DC #5181DC #6751DC
triadic
#5181DC #DC5181 #81DC51
tetradic
#5181DC #DC51C6 #DCAC51 #51DC67
square
#5181DC #DC51C6 #DCAC51 #51DC67
split-complementary
#5181DC #DC6751 #C6DC51
monochromatic
#1E4795 #285FC8 #5181DC #84A6E6 #B7CBF0

Accessibility & contrast

On white

3.80
#5181DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#5181DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181DC
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181DC#FFFFFF#000000##000000
##5181DC1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#588AE0
Deuteranopia (green-blind)
#437DDA
Tritanopia (blue-blind)
#0096A4
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5181dc;
/* rgb */ color: rgb(81, 129, 220);
/* oklch */ color: oklch(61.3% 0.148 262.0);
Tailwind
colors: {
  custom: {
    50: '#8ea5e7',
    500: '#5181dc',
    950: '#000000',
  },
}
SCSS
$custom: #5181dc;
$custom-light: #8ea5e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5181dc",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 220
  },
  "hsl": {
    "h": 219.281,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.61312,
    "c": 0.14791,
    "h": 262
  },
  "luminance": 0.22617
}

Semantic roles & 50–950 ramp

primary
#5181DC
secondary
#E0CDA9
accent
#AE3EE9
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5181DC

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

Preview Lab → · Contrast checker → · Palette generator →

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