#5176DF#5176DF

#5176DF is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.2% C 0.165 H 266.8°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5176DF
RGBrgb(81, 118, 223)
HSLhsl(224, 69%, 60%)
HSVhsv(224, 64%, 87%)
CMYKcmyk(63.7%, 47.1%, 0%, 12.5%)
CIE-LABlab(51.87, 19.86, -57.58)
CIE-LCHlch(51.87, 60.91, 289.03°)
OKLaboklab(59.22% -0.0093 -0.1647)
OKLCHoklch(59.22% 0.165 266.8)
XYZxyz(23.1865, 20.0318, 72.4423)
Luminance0.2003 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176DF #DFBA51
analogous
#51BDDF #5176DF #7351DF
triadic
#5176DF #DF5176 #76DF51
tetradic
#5176DF #DF51BD #DFBA51 #51DF73
square
#5176DF #DF51BD #DFBA51 #51DF73
split-complementary
#5176DF #DF7351 #BDDF51
monochromatic
#1C3D99 #2651CD #5176DF #859FE9 #B8C7F2

Accessibility & contrast

On white

4.19
#5176DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5176DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176DF
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176DF#FFFFFF#000000##000000
##5176DF1.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4082E3
Deuteranopia (green-blind)
#2476DD
Tritanopia (blue-blind)
#008EA0
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5176df;
/* rgb */ color: rgb(81, 118, 223);
/* oklch */ color: oklch(59.2% 0.165 266.8);
Tailwind
colors: {
  custom: {
    50: '#8f9dea',
    500: '#5176df',
    950: '#000000',
  },
}
SCSS
$custom: #5176df;
$custom-light: #8f9dea;
$custom-dark: #000000;
JSON
{
  "hex": "#5176df",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 223
  },
  "hsl": {
    "h": 224.366,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59218,
    "c": 0.165,
    "h": 266.8
  },
  "luminance": 0.20034
}

Semantic roles & 50–950 ramp

primary
#5176DF
secondary
#E1D3AA
accent
#BE3CEC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5176DF

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

Preview Lab → · Contrast checker → · Palette generator →

#5176DF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva