#5176CA#5176CA

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

Color values

HEX#5176CA
RGBrgb(81, 118, 202)
HSLhsl(222, 53%, 55%)
HSVhsv(222, 60%, 79%)
CMYKcmyk(59.9%, 41.6%, 0%, 20.8%)
CIE-LABlab(50.65, 12.71, -47.63)
CIE-LCHlch(50.65, 49.29, 284.94°)
OKLaboklab(57.89% -0.0128 -0.1355)
OKLCHoklch(57.89% 0.136 264.6)
XYZxyz(20.5288, 18.9687, 58.4452)
Luminance0.1897 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176CA #CAA551
analogous
#51B2CA #5176CA #6851CA
triadic
#5176CA #CA5176 #76CA51
tetradic
#5176CA #CA51B2 #CAA551 #51CA68
square
#5176CA #CA51B2 #CAA551 #51CA68
split-complementary
#5176CA #CA6851 #B2CA51
monochromatic
#25407B #3458AA #5176CA #809BD8 #AFC0E7

Accessibility & contrast

On white

4.38
#5176CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#5176CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176CA
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176CA#FFFFFF#000000##000000
##5176CA1.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#517FCD
Deuteranopia (green-blind)
#4073C8
Tritanopia (blue-blind)
#008996
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5176ca;
/* rgb */ color: rgb(81, 118, 202);
/* oklch */ color: oklch(57.9% 0.136 264.6);
Tailwind
colors: {
  custom: {
    50: '#8c9dda',
    500: '#5176ca',
    950: '#000000',
  },
}
SCSS
$custom: #5176ca;
$custom-light: #8c9dda;
$custom-dark: #000000;
JSON
{
  "hex": "#5176ca",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 202
  },
  "hsl": {
    "h": 221.653,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57885,
    "c": 0.13611,
    "h": 264.6
  },
  "luminance": 0.1897
}

Semantic roles & 50–950 ramp

primary
#5176CA
secondary
#D5C5A2
accent
#B04BDD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5176CA

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

Preview Lab → · Contrast checker → · Palette generator →

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