#5176DD#5176DD

#5176DD is a mid, vivid blue. Relative luminance 0.199; OKLCH L 59.1% C 0.162 H 266.6°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5176DD
RGBrgb(81, 118, 221)
HSLhsl(224, 67%, 59%)
HSVhsv(224, 63%, 87%)
CMYKcmyk(63.3%, 46.6%, 0%, 13.3%)
CIE-LABlab(51.75, 19.18, -56.64)
CIE-LCHlch(51.75, 59.80, 288.70°)
OKLaboklab(59.09% -0.0096 -0.162)
OKLCHoklch(59.09% 0.162 266.6)
XYZxyz(22.9184, 19.9246, 71.0306)
Luminance0.1993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176DD #DDB851
analogous
#51BCDD #5176DD #7251DD
triadic
#5176DD #DD5176 #76DD51
tetradic
#5176DD #DD51BC #DDB851 #51DD72
square
#5176DD #DD51BC #DDB851 #51DD72
split-complementary
#5176DD #DD7251 #BCDD51
monochromatic
#1D3D96 #2752C9 #5176DD #849EE7 #B7C7F1

Accessibility & contrast

On white

4.21
#5176DD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5176DD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176DD
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176DD#FFFFFF#000000##000000
##5176DD1.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4282E1
Deuteranopia (green-blind)
#2875DB
Tritanopia (blue-blind)
#008E9F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5176dd;
/* rgb */ color: rgb(81, 118, 221);
/* oklch */ color: oklch(59.1% 0.162 266.6);
Tailwind
colors: {
  custom: {
    50: '#8f9de8',
    500: '#5176dd',
    950: '#000000',
  },
}
SCSS
$custom: #5176dd;
$custom-light: #8f9de8;
$custom-dark: #000000;
JSON
{
  "hex": "#5176dd",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 221
  },
  "hsl": {
    "h": 224.143,
    "s": 67.308,
    "l": 59.216
  },
  "oklch": {
    "l": 0.59086,
    "c": 0.16228,
    "h": 266.6
  },
  "luminance": 0.19927
}

Semantic roles & 50–950 ramp

primary
#5176DD
secondary
#E0D2AA
accent
#BD3EEA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5176DD

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

Preview Lab → · Contrast checker → · Palette generator →

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