#5181DB#5181DB

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

Color values

HEX#5181DB
RGBrgb(81, 129, 219)
HSLhsl(219, 66%, 59%)
HSVhsv(219, 63%, 86%)
CMYKcmyk(63%, 41.1%, 0%, 14.1%)
CIE-LABlab(54.62, 11.75, -50.93)
CIE-LCHlch(54.62, 52.27, 282.99°)
OKLaboklab(61.25% -0.0208 -0.1451)
OKLCHoklch(61.25% 0.147 261.8)
XYZxyz(24.0253, 22.5621, 70.0929)
Luminance0.2256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181DB #DBAB51
analogous
#51C6DB #5181DB #6651DB
triadic
#5181DB #DB5181 #81DB51
tetradic
#5181DB #DB51C6 #DBAB51 #51DB66
square
#5181DB #DB51C6 #DBAB51 #51DB66
split-complementary
#5181DB #DB6651 #C6DB51
monochromatic
#1E4793 #2960C6 #5181DB #84A6E5 #B6CAF0

Accessibility & contrast

On white

3.81
#5181DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.51
#5181DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181DB
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181DB#FFFFFF#000000##000000
##5181DB1.003.815.515.51
#FFFFFF3.811.0021.0021.00
#0000005.5121.001.001.00
##0000005.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#588ADF
Deuteranopia (green-blind)
#447DD9
Tritanopia (blue-blind)
#0095A3
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5181db;
/* rgb */ color: rgb(81, 129, 219);
/* oklch */ color: oklch(61.3% 0.147 261.8);
Tailwind
colors: {
  custom: {
    50: '#8ea5e6',
    500: '#5181db',
    950: '#000000',
  },
}
SCSS
$custom: #5181db;
$custom-light: #8ea5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5181db",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 219
  },
  "hsl": {
    "h": 219.13,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.61252,
    "c": 0.14656,
    "h": 261.8
  },
  "luminance": 0.22564
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5181DB

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

Preview Lab → · Contrast checker → · Palette generator →

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