#5178CC#5178CC

#5178CC is a mid, vivid blue. Relative luminance 0.195; OKLCH L 58.4% C 0.137 H 263.9°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5178CC
RGBrgb(81, 120, 204)
HSLhsl(221, 55%, 56%)
HSVhsv(221, 60%, 80%)
CMYKcmyk(60.3%, 41.2%, 0%, 20%)
CIE-LABlab(51.31, 12.15, -47.71)
CIE-LCHlch(51.31, 49.23, 284.29°)
OKLaboklab(58.43% -0.0145 -0.1357)
OKLCHoklch(58.43% 0.137 263.9)
XYZxyz(21.0051, 19.5401, 59.7797)
Luminance0.1954 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178CC #CCA551
analogous
#51B5CC #5178CC #6751CC
triadic
#5178CC #CC5178 #78CC51
tetradic
#5178CC #CC51B5 #CCA551 #51CC67
square
#5178CC #CC51B5 #CCA551 #51CC67
split-complementary
#5178CC #CC6751 #B5CC51
monochromatic
#25417E #335AAD #5178CC #809DDA #B0C1E8

Accessibility & contrast

On white

4.28
#5178CC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5178CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178CC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178CC#FFFFFF#000000##000000
##5178CC1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5380CF
Deuteranopia (green-blind)
#4275CA
Tritanopia (blue-blind)
#008B98
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5178cc;
/* rgb */ color: rgb(81, 120, 204);
/* oklch */ color: oklch(58.4% 0.137 263.9);
Tailwind
colors: {
  custom: {
    50: '#8c9edc',
    500: '#5178cc',
    950: '#000000',
  },
}
SCSS
$custom: #5178cc;
$custom-light: #8c9edc;
$custom-dark: #000000;
JSON
{
  "hex": "#5178cc",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 204
  },
  "hsl": {
    "h": 220.976,
    "s": 54.667,
    "l": 55.882
  },
  "oklch": {
    "l": 0.58432,
    "c": 0.13651,
    "h": 263.9
  },
  "luminance": 0.19542
}

Semantic roles & 50–950 ramp

primary
#5178CC
secondary
#D6C6A3
accent
#AF4ADE
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5178CC

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

Preview Lab → · Contrast checker → · Palette generator →

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