#5177DB#5177DB

#5177DB is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.2% C 0.158 H 266.1°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5177DB
RGBrgb(81, 119, 219)
HSLhsl(223, 66%, 59%)
HSVhsv(223, 63%, 86%)
CMYKcmyk(63%, 45.7%, 0%, 14.1%)
CIE-LABlab(51.90, 17.87, -55.28)
CIE-LCHlch(51.90, 58.10, 287.92°)
OKLaboklab(59.16% -0.0109 -0.158)
OKLCHoklch(59.16% 0.158 266.1)
XYZxyz(22.7719, 20.0554, 69.6751)
Luminance0.2006 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177DB #DBB551
analogous
#51BCDB #5177DB #7051DB
triadic
#5177DB #DB5177 #77DB51
tetradic
#5177DB #DB51BC #DBB551 #51DB70
square
#5177DB #DB51BC #DBB551 #51DB70
split-complementary
#5177DB #DB7051 #BCDB51
monochromatic
#1E3F93 #2954C6 #5177DB #849FE5 #B6C6F0

Accessibility & contrast

On white

4.19
#5177DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5177DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177DB
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177DB#FFFFFF#000000##000000
##5177DB1.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)
#4682DF
Deuteranopia (green-blind)
#2E76D9
Tritanopia (blue-blind)
#008E9E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5177db;
/* rgb */ color: rgb(81, 119, 219);
/* oklch */ color: oklch(59.2% 0.158 266.1);
Tailwind
colors: {
  custom: {
    50: '#8e9de7',
    500: '#5177db',
    950: '#000000',
  },
}
SCSS
$custom: #5177db;
$custom-light: #8e9de7;
$custom-dark: #000000;
JSON
{
  "hex": "#5177db",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 219
  },
  "hsl": {
    "h": 223.478,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.59161,
    "c": 0.15834,
    "h": 266.1
  },
  "luminance": 0.20057
}

Semantic roles & 50–950 ramp

primary
#5177DB
secondary
#DFD0A9
accent
#BA3FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5177DB

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

Preview Lab → · Contrast checker → · Palette generator →

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