#5181DA#5181DA

#5181DA is a mid, vivid blue. Relative luminance 0.225; OKLCH L 61.2% C 0.145 H 261.7°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).

Color values

HEX#5181DA
RGBrgb(81, 129, 218)
HSLhsl(219, 65%, 59%)
HSVhsv(219, 63%, 85%)
CMYKcmyk(62.8%, 40.8%, 0%, 14.5%)
CIE-LABlab(54.56, 11.41, -50.46)
CIE-LCHlch(54.56, 51.73, 282.74°)
OKLaboklab(61.19% -0.021 -0.1437)
OKLCHoklch(61.19% 0.145 261.7)
XYZxyz(23.8940, 22.5096, 69.4017)
Luminance0.2251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181DA #DAAA51
analogous
#51C5DA #5181DA #6551DA
triadic
#5181DA #DA5181 #81DA51
tetradic
#5181DA #DA51C5 #DAAA51 #51DA65
square
#5181DA #DA51C5 #DAAA51 #51DA65
split-complementary
#5181DA #DA6551 #C5DA51
monochromatic
#1F4792 #2A60C4 #5181DA #83A6E5 #B6CAEF

Accessibility & contrast

On white

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

On black

5.50
#5181DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181DA
5.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181DA#FFFFFF#000000##000000
##5181DA1.003.825.505.50
#FFFFFF3.821.0021.0021.00
#0000005.5021.001.001.00
##0000005.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5989DD
Deuteranopia (green-blind)
#457DD8
Tritanopia (blue-blind)
#0095A3
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5181da;
/* rgb */ color: rgb(81, 129, 218);
/* oklch */ color: oklch(61.2% 0.145 261.7);
Tailwind
colors: {
  custom: {
    50: '#8ea5e6',
    500: '#5181da',
    950: '#000000',
  },
}
SCSS
$custom: #5181da;
$custom-light: #8ea5e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5181da",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 218
  },
  "hsl": {
    "h": 218.978,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.61192,
    "c": 0.14521,
    "h": 261.7
  },
  "luminance": 0.22512
}

Semantic roles & 50–950 ramp

primary
#5181DA
secondary
#DECCA8
accent
#AD40E8
background
#F9FAFE
surface
#F2F4FC
border
#CCCED5
text
#0D0F16
muted
#7E7F84

Preview Lab

Preview with #5181DA

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

Preview Lab → · Contrast checker → · Palette generator →

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