#517DCB#517DCB

#517DCB is a mid, vivid blue. Relative luminance 0.207; OKLCH L 59.4% C 0.129 H 261.1°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#517DCB
RGBrgb(81, 125, 203)
HSLhsl(218, 54%, 56%)
HSVhsv(218, 60%, 80%)
CMYKcmyk(60.1%, 38.4%, 0%, 20.4%)
CIE-LABlab(52.65, 8.76, -45.02)
CIE-LCHlch(52.65, 45.86, 281.02°)
OKLaboklab(59.45% -0.02 -0.1278)
OKLCHoklch(59.45% 0.129 261.1)
XYZxyz(21.5027, 20.7265, 59.3558)
Luminance0.2073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#517DCB #CB9F51
analogous
#51BACB #517DCB #6251CB
triadic
#517DCB #CB517D #7DCB51
tetradic
#517DCB #CB51BA #CB9F51 #51CB62
square
#517DCB #CB51BA #CB9F51 #51CB62
split-complementary
#517DCB #CB6251 #BACB51
monochromatic
#25457C #335FAC #517DCB #80A0D9 #AFC3E7

Accessibility & contrast

On white

4.08
#517DCB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#517DCB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #517DCB
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##517DCB#FFFFFF#000000##000000
##517DCB1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C84CE
Deuteranopia (green-blind)
#4B78C9
Tritanopia (blue-blind)
#008F9A
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #517dcb;
/* rgb */ color: rgb(81, 125, 203);
/* oklch */ color: oklch(59.4% 0.129 261.1);
Tailwind
colors: {
  custom: {
    50: '#8ca2db',
    500: '#517dcb',
    950: '#000000',
  },
}
SCSS
$custom: #517dcb;
$custom-light: #8ca2db;
$custom-dark: #000000;
JSON
{
  "hex": "#517dcb",
  "rgb": {
    "r": 81,
    "g": 125,
    "b": 203
  },
  "hsl": {
    "h": 218.361,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.59447,
    "c": 0.12936,
    "h": 261.1
  },
  "luminance": 0.20728
}

Semantic roles & 50–950 ramp

primary
#517DCB
secondary
#D5C3A3
accent
#A84ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0F15
muted
#7E7E83

Preview Lab

Preview with #517DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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