#5181D2#5181D2

#5181D2 is a mid, vivid blue. Relative luminance 0.221; OKLCH L 60.7% C 0.134 H 260.3°. Best body text is #000000 at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5181D2
RGBrgb(81, 129, 210)
HSLhsl(218, 59%, 57%)
HSVhsv(218, 61%, 82%)
CMYKcmyk(61.4%, 38.6%, 0%, 17.6%)
CIE-LABlab(54.13, 8.70, -46.63)
CIE-LCHlch(54.13, 47.44, 280.57°)
OKLaboklab(60.72% -0.0227 -0.1325)
OKLCHoklch(60.72% 0.134 260.3)
XYZxyz(22.8724, 22.1009, 64.0208)
Luminance0.2210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181D2 #D2A251
analogous
#51C2D2 #5181D2 #6151D2
triadic
#5181D2 #D25181 #81D251
tetradic
#5181D2 #D251C2 #D2A251 #51D261
square
#5181D2 #D251C2 #D2A251 #51D261
split-complementary
#5181D2 #D26151 #C2D251
monochromatic
#234886 #2F62B7 #5181D2 #82A4DF #B2C7EB

Accessibility & contrast

On white

3.87
#5181D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.42
#5181D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181D2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181D2#FFFFFF#000000##000000
##5181D21.003.875.425.42
#FFFFFF3.871.0021.0021.00
#0000005.4221.001.001.00
##0000005.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E88D5
Deuteranopia (green-blind)
#4C7CD0
Tritanopia (blue-blind)
#00939F
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5181d2;
/* rgb */ color: rgb(81, 129, 210);
/* oklch */ color: oklch(60.7% 0.134 260.3);
Tailwind
colors: {
  custom: {
    50: '#8da5e0',
    500: '#5181d2',
    950: '#000000',
  },
}
SCSS
$custom: #5181d2;
$custom-light: #8da5e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5181d2",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 210
  },
  "hsl": {
    "h": 217.674,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.60719,
    "c": 0.1344,
    "h": 260.3
  },
  "luminance": 0.22103
}

Semantic roles & 50–950 ramp

primary
#5181D2
secondary
#DAC6A5
accent
#A846E2
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5181D2

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

Preview Lab → · Contrast checker → · Palette generator →

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