#5181DE#5181DE

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

Color values

HEX#5181DE
RGBrgb(81, 129, 222)
HSLhsl(220, 68%, 59%)
HSVhsv(220, 64%, 87%)
CMYKcmyk(63.5%, 41.9%, 0%, 12.9%)
CIE-LABlab(54.78, 12.77, -52.35)
CIE-LCHlch(54.78, 53.89, 283.71°)
OKLaboklab(61.43% -0.0202 -0.1492)
OKLCHoklch(61.43% 0.151 262.3)
XYZxyz(24.4238, 22.7215, 72.1916)
Luminance0.2272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181DE #DEAE51
analogous
#51C8DE #5181DE #6751DE
triadic
#5181DE #DE5181 #81DE51
tetradic
#5181DE #DE51C8 #DEAE51 #51DE67
square
#5181DE #DE51C8 #DEAE51 #51DE67
split-complementary
#5181DE #DE6751 #C8DE51
monochromatic
#1D4798 #275FCB #5181DE #84A6E8 #B8CCF2

Accessibility & contrast

On white

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

On black

5.54
#5181DE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181DE
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181DE#FFFFFF#000000##000000
##5181DE1.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#568AE2
Deuteranopia (green-blind)
#417DDC
Tritanopia (blue-blind)
#0096A5
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5181de;
/* rgb */ color: rgb(81, 129, 222);
/* oklch */ color: oklch(61.4% 0.151 262.3);
Tailwind
colors: {
  custom: {
    50: '#8fa5e9',
    500: '#5181de',
    950: '#000000',
  },
}
SCSS
$custom: #5181de;
$custom-light: #8fa5e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5181de",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 222
  },
  "hsl": {
    "h": 219.574,
    "s": 68.116,
    "l": 59.412
  },
  "oklch": {
    "l": 0.61434,
    "c": 0.15061,
    "h": 262.3
  },
  "luminance": 0.22724
}

Semantic roles & 50–950 ramp

primary
#5181DE
secondary
#E1CEAA
accent
#B03DEB
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5181DE

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

Preview Lab → · Contrast checker → · Palette generator →

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