#5181BB#5181BB

#5181BB is a mid, moderate cyan. Relative luminance 0.210; OKLCH L 59.5% C 0.104 H 254.0°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5181BB
RGBrgb(81, 129, 187)
HSLhsl(213, 44%, 53%)
HSVhsv(213, 57%, 73%)
CMYKcmyk(56.7%, 31%, 0%, 26.7%)
CIE-LABlab(52.99, 1.07, -35.35)
CIE-LCHlch(52.99, 35.37, 271.73°)
OKLaboklab(59.45% -0.0286 -0.0996)
OKLCHoklch(59.45% 0.104 254)
XYZxyz(20.2101, 21.0360, 49.9994)
Luminance0.2104 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181BB #BB8B51
analogous
#51B6BB #5181BB #5651BB
triadic
#5181BB #BB5181 #81BB51
tetradic
#5181BB #BB51B6 #BB8B51 #51BB56
square
#5181BB #BB51B6 #BB8B51 #51BB56
split-complementary
#5181BB #BB5651 #B6BB51
monochromatic
#294669 #3A6395 #5181BB #7DA1CC #A9C1DD

Accessibility & contrast

On white

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

On black

5.21
#5181BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5181BB
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5181BB#FFFFFF#000000##000000
##5181BB1.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6984BD
Deuteranopia (green-blind)
#5C7ABA
Tritanopia (blue-blind)
#008E96
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5181bb;
/* rgb */ color: rgb(81, 129, 187);
/* oklch */ color: oklch(59.5% 0.104 254.0);
Tailwind
colors: {
  custom: {
    50: '#8aa5cf',
    500: '#5181bb',
    950: '#000000',
  },
}
SCSS
$custom: #5181bb;
$custom-light: #8aa5cf;
$custom-dark: #000000;
JSON
{
  "hex": "#5181bb",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 187
  },
  "hsl": {
    "h": 212.83,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.59452,
    "c": 0.1036,
    "h": 254
  },
  "luminance": 0.21038
}

Semantic roles & 50–950 ramp

primary
#5181BB
secondary
#CBB69D
accent
#9A54D4
background
#F8FAFC
surface
#F0F4F9
border
#CBCED2
text
#0C0F14
muted
#7D7F82

Preview Lab

Preview with #5181BB

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

Preview Lab → · Contrast checker → · Palette generator →

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