#5176CB#5176CB

#5176CB is a mid, vivid blue. Relative luminance 0.190; OKLCH L 57.9% C 0.138 H 264.7°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#5176CB
RGBrgb(81, 118, 203)
HSLhsl(222, 54%, 56%)
HSVhsv(222, 60%, 80%)
CMYKcmyk(60.1%, 41.9%, 0%, 20.4%)
CIE-LABlab(50.71, 13.04, -48.11)
CIE-LCHlch(50.71, 49.84, 285.17°)
OKLaboklab(57.95% -0.0126 -0.1369)
OKLCHoklch(57.95% 0.138 264.7)
XYZxyz(20.6476, 19.0162, 59.0707)
Luminance0.1902 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176CB #CBA651
analogous
#51B3CB #5176CB #6951CB
triadic
#5176CB #CB5176 #76CB51
tetradic
#5176CB #CB51B3 #CBA651 #51CB69
square
#5176CB #CB51B3 #CBA651 #51CB69
split-complementary
#5176CB #CB6951 #B3CB51
monochromatic
#25407C #3358AC #5176CB #809BD9 #AFC0E7

Accessibility & contrast

On white

4.37
#5176CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#5176CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176CB
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176CB#FFFFFF#000000##000000
##5176CB1.004.374.804.80
#FFFFFF4.371.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#507FCE
Deuteranopia (green-blind)
#3F74C9
Tritanopia (blue-blind)
#008996
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5176cb;
/* rgb */ color: rgb(81, 118, 203);
/* oklch */ color: oklch(57.9% 0.138 264.7);
Tailwind
colors: {
  custom: {
    50: '#8c9ddb',
    500: '#5176cb',
    950: '#000000',
  },
}
SCSS
$custom: #5176cb;
$custom-light: #8c9ddb;
$custom-dark: #000000;
JSON
{
  "hex": "#5176cb",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 203
  },
  "hsl": {
    "h": 221.803,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57946,
    "c": 0.1375,
    "h": 264.7
  },
  "luminance": 0.19018
}

Semantic roles & 50–950 ramp

primary
#5176CB
secondary
#D5C6A3
accent
#B14ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5176CB

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

Preview Lab → · Contrast checker → · Palette generator →

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