#5185C2#5185C2

#5185C2 is a mid, moderate cyan. Relative luminance 0.224; OKLCH L 60.7% C 0.109 H 253.4°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5185C2
RGBrgb(81, 133, 194)
HSLhsl(212, 48%, 54%)
HSVhsv(212, 58%, 76%)
CMYKcmyk(58.2%, 31.4%, 0%, 23.9%)
CIE-LABlab(54.47, 0.98, -37.03)
CIE-LCHlch(54.47, 37.04, 271.52°)
OKLaboklab(60.72% -0.0311 -0.1044)
OKLCHoklch(60.72% 0.109 253.4)
XYZxyz(21.5150, 22.4176, 54.2217)
Luminance0.2242 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5185C2 #C28E51
analogous
#51BEC2 #5185C2 #5651C2
triadic
#5185C2 #C25185 #85C251
tetradic
#5185C2 #C251BE #C28E51 #51C256
square
#5185C2 #C251BE #C28E51 #51C256
split-complementary
#5185C2 #C25651 #BEC251
monochromatic
#284971 #37679E #5185C2 #7EA5D2 #ACC5E2

Accessibility & contrast

On white

3.83
#5185C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#5185C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5185C2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5185C2#FFFFFF#000000##000000
##5185C21.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C88C5
Deuteranopia (green-blind)
#5D7DC1
Tritanopia (blue-blind)
#00939B
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5185c2;
/* rgb */ color: rgb(81, 133, 194);
/* oklch */ color: oklch(60.7% 0.109 253.4);
Tailwind
colors: {
  custom: {
    50: '#8aa8d4',
    500: '#5185c2',
    950: '#000000',
  },
}
SCSS
$custom: #5185c2;
$custom-light: #8aa8d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5185c2",
  "rgb": {
    "r": 81,
    "g": 133,
    "b": 194
  },
  "hsl": {
    "h": 212.389,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.60718,
    "c": 0.10896,
    "h": 253.4
  },
  "luminance": 0.22419
}

Semantic roles & 50–950 ramp

primary
#5185C2
secondary
#D0B99F
accent
#9950D8
background
#F8FAFD
surface
#F0F4FA
border
#CBCED3
text
#0D0F14
muted
#7D7F83

Preview Lab

Preview with #5185C2

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

Preview Lab → · Contrast checker → · Palette generator →

#5185C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva