#5181BC#5181BC

#5181BC is a mid, moderate cyan. Relative luminance 0.211; OKLCH L 59.5% C 0.105 H 254.4°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5181BC
RGBrgb(81, 129, 188)
HSLhsl(213, 44%, 53%)
HSVhsv(213, 57%, 74%)
CMYKcmyk(56.9%, 31.4%, 0%, 26.3%)
CIE-LABlab(53.04, 1.39, -35.85)
CIE-LCHlch(53.04, 35.88, 272.22°)
OKLaboklab(59.5% -0.0283 -0.101)
OKLCHoklch(59.5% 0.105 254.4)
XYZxyz(20.3175, 21.0790, 50.5652)
Luminance0.2108 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181BC #BC8C51
analogous
#51B6BC #5181BC #5651BC
triadic
#5181BC #BC5181 #81BC51
tetradic
#5181BC #BC51B6 #BC8C51 #51BC56
square
#5181BC #BC51B6 #BC8C51 #51BC56
split-complementary
#5181BC #BC5651 #B6BC51
monochromatic
#29466A #3A6396 #5181BC #7DA1CD #A9C1DE

Accessibility & contrast

On white

4.03
#5181BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#5181BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181BC
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181BC#FFFFFF#000000##000000
##5181BC1.004.035.225.22
#FFFFFF4.031.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6984BF
Deuteranopia (green-blind)
#5B7ABB
Tritanopia (blue-blind)
#008E96
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5181bc;
/* rgb */ color: rgb(81, 129, 188);
/* oklch */ color: oklch(59.5% 0.105 254.4);
Tailwind
colors: {
  custom: {
    50: '#8aa5d0',
    500: '#5181bc',
    950: '#000000',
  },
}
SCSS
$custom: #5181bc;
$custom-light: #8aa5d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5181bc",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 188
  },
  "hsl": {
    "h": 213.084,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.59504,
    "c": 0.10492,
    "h": 254.4
  },
  "luminance": 0.21081
}

Semantic roles & 50–950 ramp

primary
#5181BC
secondary
#CCB79D
accent
#9B54D4
background
#F8FAFC
surface
#F0F4F9
border
#CBCED2
text
#0C0F14
muted
#7D7F82

Preview Lab

Preview with #5181BC

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

Preview Lab → · Contrast checker → · Palette generator →

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