#5185E2#5185E2

#5185E2 is a light, vivid blue. Relative luminance 0.240; OKLCH L 62.5% C 0.151 H 261.1°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#5185E2
RGBrgb(81, 133, 226)
HSLhsl(218, 71%, 60%)
HSVhsv(218, 64%, 89%)
CMYKcmyk(64.2%, 41.2%, 0%, 11.4%)
CIE-LABlab(56.10, 11.72, -52.50)
CIE-LCHlch(56.10, 53.79, 282.58°)
OKLaboklab(62.52% -0.0234 -0.1496)
OKLCHoklch(62.52% 0.151 261.1)
XYZxyz(25.5035, 24.0130, 75.2277)
Luminance0.2402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5185E2 #E2AE51
analogous
#51CDE2 #5185E2 #6551E2
triadic
#5185E2 #E25185 #85E251
tetradic
#5185E2 #E251CD #E2AE51 #51E265
square
#5185E2 #E251CD #E2AE51 #51E265
split-complementary
#5185E2 #E26551 #CDE251
monochromatic
#1A4A9E #2362D3 #5185E2 #85AAEB #BACFF3

Accessibility & contrast

On white

3.62
#5185E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#5185E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5185E2
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5185E2#FFFFFF#000000##000000
##5185E21.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B8EE6
Deuteranopia (green-blind)
#4580E0
Tritanopia (blue-blind)
#009AA8
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #5185e2;
/* rgb */ color: rgb(81, 133, 226);
/* oklch */ color: oklch(62.5% 0.151 261.1);
Tailwind
colors: {
  custom: {
    50: '#8fa8eb',
    500: '#5185e2',
    950: '#000000',
  },
}
SCSS
$custom: #5185e2;
$custom-light: #8fa8eb;
$custom-dark: #000000;
JSON
{
  "hex": "#5185e2",
  "rgb": {
    "r": 81,
    "g": 133,
    "b": 226
  },
  "hsl": {
    "h": 218.483,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.62522,
    "c": 0.15142,
    "h": 261.1
  },
  "luminance": 0.24015
}

Semantic roles & 50–950 ramp

primary
#5185E2
secondary
#E3CFAC
accent
#8E12D3
background
#F9FAFE
surface
#F2F4FD
border
#CCCED5
text
#0E0F16
muted
#7E7F84

Preview Lab

Preview with #5185E2

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

Preview Lab → · Contrast checker → · Palette generator →

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