#5181D4#5181D4

#5181D4 is a mid, vivid blue. Relative luminance 0.222; OKLCH L 60.8% C 0.137 H 260.7°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#5181D4
RGBrgb(81, 129, 212)
HSLhsl(218, 60%, 57%)
HSVhsv(218, 62%, 83%)
CMYKcmyk(61.8%, 39.2%, 0%, 16.9%)
CIE-LABlab(54.24, 9.37, -47.59)
CIE-LCHlch(54.24, 48.51, 281.14°)
OKLaboklab(60.84% -0.0222 -0.1353)
OKLCHoklch(60.84% 0.137 260.7)
XYZxyz(23.1231, 22.2012, 65.3413)
Luminance0.2220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181D4 #D4A451
analogous
#51C3D4 #5181D4 #6251D4
triadic
#5181D4 #D45181 #81D451
tetradic
#5181D4 #D451C3 #D4A451 #51D462
square
#5181D4 #D451C3 #D4A451 #51D462
split-complementary
#5181D4 #D46251 #C3D451
monochromatic
#224889 #2E61BA #5181D4 #82A5E0 #B3C8EC

Accessibility & contrast

On white

3.86
#5181D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#5181D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181D4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181D4#FFFFFF#000000##000000
##5181D41.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D88D7
Deuteranopia (green-blind)
#4A7CD2
Tritanopia (blue-blind)
#0094A0
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5181d4;
/* rgb */ color: rgb(81, 129, 212);
/* oklch */ color: oklch(60.8% 0.137 260.7);
Tailwind
colors: {
  custom: {
    50: '#8da5e1',
    500: '#5181d4',
    950: '#000000',
  },
}
SCSS
$custom: #5181d4;
$custom-light: #8da5e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5181d4",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 212
  },
  "hsl": {
    "h": 218.015,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.60836,
    "c": 0.13711,
    "h": 260.7
  },
  "luminance": 0.22203
}

Semantic roles & 50–950 ramp

primary
#5181D4
secondary
#DBC7A6
accent
#A944E4
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5181D4

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

Preview Lab → · Contrast checker → · Palette generator →

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