#5179CC#5179CC

#5179CC is a mid, vivid blue. Relative luminance 0.198; OKLCH L 58.6% C 0.135 H 263.4°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#5179CC
RGBrgb(81, 121, 204)
HSLhsl(220, 55%, 56%)
HSVhsv(220, 60%, 80%)
CMYKcmyk(60.3%, 40.7%, 0%, 20%)
CIE-LABlab(51.59, 11.54, -47.27)
CIE-LCHlch(51.59, 48.66, 283.72°)
OKLaboklab(58.65% -0.0156 -0.1344)
OKLCHoklch(58.65% 0.135 263.4)
XYZxyz(21.1260, 19.7819, 59.8200)
Luminance0.1978 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5179CC #CCA451
analogous
#51B6CC #5179CC #6651CC
triadic
#5179CC #CC5179 #79CC51
tetradic
#5179CC #CC51B6 #CCA451 #51CC66
square
#5179CC #CC51B6 #CCA451 #51CC66
split-complementary
#5179CC #CC6651 #B6CC51
monochromatic
#25427E #335BAD #5179CC #809DDA #B0C2E8

Accessibility & contrast

On white

4.24
#5179CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#5179CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5179CC
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5179CC#FFFFFF#000000##000000
##5179CC1.004.244.964.96
#FFFFFF4.241.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5581CF
Deuteranopia (green-blind)
#4476CA
Tritanopia (blue-blind)
#008C98
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5179cc;
/* rgb */ color: rgb(81, 121, 204);
/* oklch */ color: oklch(58.6% 0.135 263.4);
Tailwind
colors: {
  custom: {
    50: '#8c9fdc',
    500: '#5179cc',
    950: '#000000',
  },
}
SCSS
$custom: #5179cc;
$custom-light: #8c9fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#5179cc",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 204
  },
  "hsl": {
    "h": 220.488,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58645,
    "c": 0.13534,
    "h": 263.4
  },
  "luminance": 0.19784
}

Semantic roles & 50–950 ramp

primary
#5179CC
secondary
#D6C5A3
accent
#AE4ADE
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5179CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5179CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva