#5181CC#5181CC

#5181CC is a mid, vivid blue. Relative luminance 0.218; OKLCH L 60.4% C 0.126 H 259.0°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5181CC
RGBrgb(81, 129, 204)
HSLhsl(217, 55%, 56%)
HSVhsv(217, 60%, 80%)
CMYKcmyk(60.3%, 36.8%, 0%, 20%)
CIE-LABlab(53.82, 6.68, -43.73)
CIE-LCHlch(53.82, 44.24, 278.69°)
OKLaboklab(60.38% -0.0241 -0.124)
OKLCHoklch(60.38% 0.126 259)
XYZxyz(22.1388, 21.8075, 60.1576)
Luminance0.2181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181CC #CC9C51
analogous
#51BFCC #5181CC #5E51CC
triadic
#5181CC #CC5181 #81CC51
tetradic
#5181CC #CC51BF #CC9C51 #51CC5E
square
#5181CC #CC51BF #CC9C51 #51CC5E
split-complementary
#5181CC #CC5E51 #BFCC51
monochromatic
#25487E #3362AD #5181CC #80A3DA #B0C6E8

Accessibility & contrast

On white

3.92
#5181CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#5181CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181CC
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181CC#FFFFFF#000000##000000
##5181CC1.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6187CF
Deuteranopia (green-blind)
#517BCA
Tritanopia (blue-blind)
#00929D
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5181cc;
/* rgb */ color: rgb(81, 129, 204);
/* oklch */ color: oklch(60.4% 0.126 259.0);
Tailwind
colors: {
  custom: {
    50: '#8ca5dc',
    500: '#5181cc',
    950: '#000000',
  },
}
SCSS
$custom: #5181cc;
$custom-light: #8ca5dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5181cc",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 204
  },
  "hsl": {
    "h": 216.585,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60375,
    "c": 0.1263,
    "h": 259
  },
  "luminance": 0.21809
}

Semantic roles & 50–950 ramp

primary
#5181CC
secondary
#D6C2A3
accent
#A44ADE
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5181CC

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

Preview Lab → · Contrast checker → · Palette generator →

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