#5176DA#5176DA

#5176DA is a mid, vivid blue. Relative luminance 0.198; OKLCH L 58.9% C 0.158 H 266.4°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5176DA
RGBrgb(81, 118, 218)
HSLhsl(224, 65%, 59%)
HSVhsv(224, 63%, 85%)
CMYKcmyk(62.8%, 45.9%, 0%, 14.5%)
CIE-LABlab(51.57, 18.15, -55.24)
CIE-LCHlch(51.57, 58.14, 288.19°)
OKLaboklab(58.89% -0.01 -0.1579)
OKLCHoklch(58.89% 0.158 266.4)
XYZxyz(22.5223, 19.7661, 68.9444)
Luminance0.1977 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176DA #DAB551
analogous
#51BADA #5176DA #7051DA
triadic
#5176DA #DA5176 #76DA51
tetradic
#5176DA #DA51BA #DAB551 #51DA70
square
#5176DA #DA51BA #DAB551 #51DA70
split-complementary
#5176DA #DA7051 #BADA51
monochromatic
#1F3E92 #2A53C4 #5176DA #839EE5 #B6C5EF

Accessibility & contrast

On white

4.24
#5176DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5176DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176DA
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176DA#FFFFFF#000000##000000
##5176DA1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4582DE
Deuteranopia (green-blind)
#2D75D8
Tritanopia (blue-blind)
#008D9D
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5176da;
/* rgb */ color: rgb(81, 118, 218);
/* oklch */ color: oklch(58.9% 0.158 266.4);
Tailwind
colors: {
  custom: {
    50: '#8e9de6',
    500: '#5176da',
    950: '#000000',
  },
}
SCSS
$custom: #5176da;
$custom-light: #8e9de6;
$custom-dark: #000000;
JSON
{
  "hex": "#5176da",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 218
  },
  "hsl": {
    "h": 223.796,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58891,
    "c": 0.15819,
    "h": 266.4
  },
  "luminance": 0.19768
}

Semantic roles & 50–950 ramp

primary
#5176DA
secondary
#DED0A8
accent
#BB40E8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5176DA

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

Preview Lab → · Contrast checker → · Palette generator →

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