#517EC2#517EC2

#517EC2 is a mid, moderate blue. Relative luminance 0.206; OKLCH L 59.2% C 0.116 H 258.4°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#517EC2
RGBrgb(81, 126, 194)
HSLhsl(216, 48%, 54%)
HSVhsv(216, 58%, 76%)
CMYKcmyk(58.2%, 35.1%, 0%, 23.9%)
CIE-LABlab(52.47, 5.16, -40.17)
CIE-LCHlch(52.47, 40.50, 277.31°)
OKLaboklab(59.16% -0.0233 -0.1136)
OKLCHoklch(59.16% 0.116 258.4)
XYZxyz(20.5884, 20.5643, 53.9128)
Luminance0.2057 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517EC2 #C29551
analogous
#51B7C2 #517EC2 #5D51C2
triadic
#517EC2 #C2517E #7EC251
tetradic
#517EC2 #C251B7 #C29551 #51C25D
square
#517EC2 #C251B7 #C29551 #51C25D
split-complementary
#517EC2 #C25D51 #B7C251
monochromatic
#284571 #37609E #517EC2 #7EA0D2 #ACC1E2

Accessibility & contrast

On white

4.11
#517EC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#517EC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #517EC2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517EC2#FFFFFF#000000##000000
##517EC21.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6283C5
Deuteranopia (green-blind)
#5378C1
Tritanopia (blue-blind)
#008D97
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #517ec2;
/* rgb */ color: rgb(81, 126, 194);
/* oklch */ color: oklch(59.2% 0.116 258.4);
Tailwind
colors: {
  custom: {
    50: '#8aa3d5',
    500: '#517ec2',
    950: '#000000',
  },
}
SCSS
$custom: #517ec2;
$custom-light: #8aa3d5;
$custom-dark: #000000;
JSON
{
  "hex": "#517ec2",
  "rgb": {
    "r": 81,
    "g": 126,
    "b": 194
  },
  "hsl": {
    "h": 216.106,
    "s": 48.085,
    "l": 53.922
  },
  "oklch": {
    "l": 0.59157,
    "c": 0.11599,
    "h": 258.4
  },
  "luminance": 0.20566
}

Semantic roles & 50–950 ramp

primary
#517EC2
secondary
#D0BC9F
accent
#A250D8
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0D0F14
muted
#7D7E83

Preview Lab

Preview with #517EC2

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

Preview Lab → · Contrast checker → · Palette generator →

#517EC2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva