#5181CF#5181CF

#5181CF is a mid, vivid blue. Relative luminance 0.220; OKLCH L 60.5% C 0.130 H 259.7°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5181CF
RGBrgb(81, 129, 207)
HSLhsl(217, 57%, 56%)
HSVhsv(217, 61%, 81%)
CMYKcmyk(60.9%, 37.7%, 0%, 18.8%)
CIE-LABlab(53.98, 7.69, -45.18)
CIE-LCHlch(53.98, 45.83, 279.66°)
OKLaboklab(60.55% -0.0234 -0.1282)
OKLCHoklch(60.55% 0.13 259.7)
XYZxyz(22.5021, 21.9528, 62.0709)
Luminance0.2195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181CF #CF9F51
analogous
#51C0CF #5181CF #6051CF
triadic
#5181CF #CF5181 #81CF51
tetradic
#5181CF #CF51C0 #CF9F51 #51CF60
square
#5181CF #CF51C0 #CF9F51 #51CF60
split-complementary
#5181CF #CF6051 #C0CF51
monochromatic
#244882 #3162B2 #5181CF #81A4DC #B1C6E9

Accessibility & contrast

On white

3.90
#5181CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#5181CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181CF
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181CF#FFFFFF#000000##000000
##5181CF1.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6087D2
Deuteranopia (green-blind)
#4E7CCD
Tritanopia (blue-blind)
#00939E
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5181cf;
/* rgb */ color: rgb(81, 129, 207);
/* oklch */ color: oklch(60.5% 0.130 259.7);
Tailwind
colors: {
  custom: {
    50: '#8ca5de',
    500: '#5181cf',
    950: '#000000',
  },
}
SCSS
$custom: #5181cf;
$custom-light: #8ca5de;
$custom-dark: #000000;
JSON
{
  "hex": "#5181cf",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 207
  },
  "hsl": {
    "h": 217.143,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.60546,
    "c": 0.13035,
    "h": 259.7
  },
  "luminance": 0.21955
}

Semantic roles & 50–950 ramp

primary
#5181CF
secondary
#D8C4A4
accent
#A648E0
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5181CF

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

Preview Lab → · Contrast checker → · Palette generator →

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