#5181BD#5181BD

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

Color values

HEX#5181BD
RGBrgb(81, 129, 189)
HSLhsl(213, 45%, 53%)
HSVhsv(213, 57%, 74%)
CMYKcmyk(57.1%, 31.7%, 0%, 25.9%)
CIE-LABlab(53.08, 1.72, -36.35)
CIE-LCHlch(53.08, 36.39, 272.71°)
OKLaboklab(59.56% -0.028 -0.1025)
OKLCHoklch(59.56% 0.106 254.7)
XYZxyz(20.4257, 21.1222, 51.1349)
Luminance0.2112 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5181BD #BD8D51
analogous
#51B7BD #5181BD #5751BD
triadic
#5181BD #BD5181 #81BD51
tetradic
#5181BD #BD51B7 #BD8D51 #51BD57
square
#5181BD #BD51B7 #BD8D51 #51BD57
split-complementary
#5181BD #BD5751 #B7BD51
monochromatic
#29466B #396397 #5181BD #7DA1CE #AAC1DF

Accessibility & contrast

On white

4.02
#5181BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##5181BD#FFFFFF#000000##000000
##5181BD1.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6884C0
Deuteranopia (green-blind)
#5A7ABC
Tritanopia (blue-blind)
#008F96
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5181bd;
/* rgb */ color: rgb(81, 129, 189);
/* oklch */ color: oklch(59.6% 0.106 254.7);
Tailwind
colors: {
  custom: {
    50: '#8aa5d1',
    500: '#5181bd',
    950: '#000000',
  },
}
SCSS
$custom: #5181bd;
$custom-light: #8aa5d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5181bd",
  "rgb": {
    "r": 81,
    "g": 129,
    "b": 189
  },
  "hsl": {
    "h": 213.333,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.59557,
    "c": 0.10624,
    "h": 254.7
  },
  "luminance": 0.21124
}

Semantic roles & 50–950 ramp

primary
#5181BD
secondary
#CCB79E
accent
#9B53D5
background
#F8FAFC
surface
#F0F4F9
border
#CBCED2
text
#0C0F14
muted
#7D7F82

Preview Lab

Preview with #5181BD

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

Preview Lab → · Contrast checker → · Palette generator →

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