#5176DB#5176DB

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

Color values

HEX#5176DB
RGBrgb(81, 118, 219)
HSLhsl(224, 66%, 59%)
HSVhsv(224, 63%, 86%)
CMYKcmyk(63%, 46.1%, 0%, 14.1%)
CIE-LABlab(51.63, 18.49, -55.71)
CIE-LCHlch(51.63, 58.70, 288.36°)
OKLaboklab(58.96% -0.0099 -0.1592)
OKLCHoklch(58.96% 0.16 266.4)
XYZxyz(22.6536, 19.8186, 69.6357)
Luminance0.1982 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176DB #DBB651
analogous
#51BBDB #5176DB #7151DB
triadic
#5176DB #DB5176 #76DB51
tetradic
#5176DB #DB51BB #DBB651 #51DB71
square
#5176DB #DB51BB #DBB651 #51DB71
split-complementary
#5176DB #DB7151 #BBDB51
monochromatic
#1E3E93 #2953C6 #5176DB #849EE5 #B6C6F0

Accessibility & contrast

On white

4.23
#5176DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5176DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176DB
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176DB#FFFFFF#000000##000000
##5176DB1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4482DF
Deuteranopia (green-blind)
#2B75D9
Tritanopia (blue-blind)
#008D9E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5176db;
/* rgb */ color: rgb(81, 118, 219);
/* oklch */ color: oklch(59.0% 0.160 266.4);
Tailwind
colors: {
  custom: {
    50: '#8e9de7',
    500: '#5176db',
    950: '#000000',
  },
}
SCSS
$custom: #5176db;
$custom-light: #8e9de7;
$custom-dark: #000000;
JSON
{
  "hex": "#5176db",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 219
  },
  "hsl": {
    "h": 223.913,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58956,
    "c": 0.15956,
    "h": 266.4
  },
  "luminance": 0.19821
}

Semantic roles & 50–950 ramp

primary
#5176DB
secondary
#DFD1A9
accent
#BB3FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5176DB

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

Preview Lab → · Contrast checker → · Palette generator →

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