#5185D7#5185D7

#5185D7 is a mid, vivid blue. Relative luminance 0.234; OKLCH L 61.9% C 0.137 H 259.2°. Best body text is #000000 at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#5185D7
RGBrgb(81, 133, 215)
HSLhsl(217, 63%, 58%)
HSVhsv(217, 62%, 84%)
CMYKcmyk(62.3%, 38.1%, 0%, 15.7%)
CIE-LABlab(55.51, 7.98, -47.27)
CIE-LCHlch(55.51, 47.93, 279.58°)
OKLaboklab(61.87% -0.0257 -0.1343)
OKLCHoklch(61.87% 0.137 259.2)
XYZxyz(24.0423, 23.4285, 67.5319)
Luminance0.2343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5185D7 #D7A351
analogous
#51C8D7 #5185D7 #6051D7
triadic
#5185D7 #D75185 #85D751
tetradic
#5185D7 #D751C8 #D7A351 #51D760
square
#5185D7 #D751C8 #D7A351 #51D760
split-complementary
#5185D7 #D76051 #C8D751
monochromatic
#204B8D #2C65BF #5185D7 #83A8E2 #B5CBEE

Accessibility & contrast

On white

3.69
#5185D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.69
#5185D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5185D7
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5185D7#FFFFFF#000000##000000
##5185D71.003.695.695.69
#FFFFFF3.691.0021.0021.00
#0000005.6921.001.001.00
##0000005.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#618CDA
Deuteranopia (green-blind)
#4E7FD5
Tritanopia (blue-blind)
#0098A4
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #5185d7;
/* rgb */ color: rgb(81, 133, 215);
/* oklch */ color: oklch(61.9% 0.137 259.2);
Tailwind
colors: {
  custom: {
    50: '#8da8e4',
    500: '#5185d7',
    950: '#000000',
  },
}
SCSS
$custom: #5185d7;
$custom-light: #8da8e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5185d7",
  "rgb": {
    "r": 81,
    "g": 133,
    "b": 215
  },
  "hsl": {
    "h": 216.716,
    "s": 62.617,
    "l": 58.039
  },
  "oklch": {
    "l": 0.61874,
    "c": 0.13672,
    "h": 259.2
  },
  "luminance": 0.23431
}

Semantic roles & 50–950 ramp

primary
#5185D7
secondary
#DDC8A7
accent
#A642E6
background
#F9FAFE
surface
#F1F4FC
border
#CBCED5
text
#0D0F15
muted
#7E7F84

Preview Lab

Preview with #5185D7

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

Preview Lab → · Contrast checker → · Palette generator →

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