#5178CF#5178CF

#5178CF is a mid, vivid blue. Relative luminance 0.197; OKLCH L 58.6% C 0.141 H 264.3°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5178CF
RGBrgb(81, 120, 207)
HSLhsl(221, 57%, 56%)
HSVhsv(221, 61%, 81%)
CMYKcmyk(60.9%, 42%, 0%, 18.8%)
CIE-LABlab(51.48, 13.17, -49.15)
CIE-LCHlch(51.48, 50.89, 285.00°)
OKLaboklab(58.61% -0.0139 -0.14)
OKLCHoklch(58.61% 0.141 264.3)
XYZxyz(21.3684, 19.6854, 61.6930)
Luminance0.1969 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178CF #CFA851
analogous
#51B7CF #5178CF #6951CF
triadic
#5178CF #CF5178 #78CF51
tetradic
#5178CF #CF51B7 #CFA851 #51CF69
square
#5178CF #CF51B7 #CFA851 #51CF69
split-complementary
#5178CF #CF6951 #B7CF51
monochromatic
#244182 #3159B2 #5178CF #819DDC #B1C2E9

Accessibility & contrast

On white

4.25
#5178CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5178CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178CF
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178CF#FFFFFF#000000##000000
##5178CF1.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5181D2
Deuteranopia (green-blind)
#3F75CD
Tritanopia (blue-blind)
#008C99
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5178cf;
/* rgb */ color: rgb(81, 120, 207);
/* oklch */ color: oklch(58.6% 0.141 264.3);
Tailwind
colors: {
  custom: {
    50: '#8c9ede',
    500: '#5178cf',
    950: '#000000',
  },
}
SCSS
$custom: #5178cf;
$custom-light: #8c9ede;
$custom-dark: #000000;
JSON
{
  "hex": "#5178cf",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 207
  },
  "hsl": {
    "h": 221.429,
    "s": 56.757,
    "l": 56.471
  },
  "oklch": {
    "l": 0.58614,
    "c": 0.14066,
    "h": 264.3
  },
  "luminance": 0.19687
}

Semantic roles & 50–950 ramp

primary
#5178CF
secondary
#D8C8A4
accent
#B148E0
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5178CF

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

Preview Lab → · Contrast checker → · Palette generator →

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