#5185CF#5185CF

#5185CF is a mid, vivid blue. Relative luminance 0.230; OKLCH L 61.4% C 0.126 H 257.3°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5185CF
RGBrgb(81, 133, 207)
HSLhsl(215, 57%, 56%)
HSVhsv(215, 61%, 81%)
CMYKcmyk(60.9%, 35.7%, 0%, 18.8%)
CIE-LABlab(55.10, 5.29, -43.41)
CIE-LCHlch(55.10, 43.73, 276.95°)
OKLaboklab(61.42% -0.0276 -0.123)
OKLCHoklch(61.42% 0.126 257.3)
XYZxyz(23.0394, 23.0273, 62.2500)
Luminance0.2303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5185CF #CF9B51
analogous
#51C4CF #5185CF #5C51CF
triadic
#5185CF #CF5185 #85CF51
tetradic
#5185CF #CF51C4 #CF9B51 #51CF5C
square
#5185CF #CF51C4 #CF9B51 #51CF5C
split-complementary
#5185CF #CF5C51 #C4CF51
monochromatic
#244B82 #3166B2 #5185CF #81A7DC #B1C8E9

Accessibility & contrast

On white

3.75
#5185CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#5185CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5185CF
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5185CF#FFFFFF#000000##000000
##5185CF1.003.755.615.61
#FFFFFF3.751.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#668AD2
Deuteranopia (green-blind)
#557ECD
Tritanopia (blue-blind)
#0096A0
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #5185cf;
/* rgb */ color: rgb(81, 133, 207);
/* oklch */ color: oklch(61.4% 0.126 257.3);
Tailwind
colors: {
  custom: {
    50: '#8ca8de',
    500: '#5185cf',
    950: '#000000',
  },
}
SCSS
$custom: #5185cf;
$custom-light: #8ca8de;
$custom-dark: #000000;
JSON
{
  "hex": "#5185cf",
  "rgb": {
    "r": 81,
    "g": 133,
    "b": 207
  },
  "hsl": {
    "h": 215.238,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.6142,
    "c": 0.12606,
    "h": 257.3
  },
  "luminance": 0.23029
}

Semantic roles & 50–950 ramp

primary
#5185CF
secondary
#D8C2A4
accent
#A148E0
background
#F9FAFD
surface
#F1F4FB
border
#CBCED4
text
#0D0F15
muted
#7E7F83

Preview Lab

Preview with #5185CF

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

Preview Lab → · Contrast checker → · Palette generator →

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