#5178BC#5178BC

#5178BC is a mid, moderate blue. Relative luminance 0.188; OKLCH L 57.5% C 0.114 H 260.9°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#5178BC
RGBrgb(81, 120, 188)
HSLhsl(218, 44%, 53%)
HSVhsv(218, 57%, 74%)
CMYKcmyk(56.9%, 36.2%, 0%, 26.3%)
CIE-LABlab(50.47, 6.80, -39.90)
CIE-LCHlch(50.47, 40.47, 279.68°)
OKLaboklab(57.5% -0.0181 -0.1129)
OKLCHoklch(57.5% 0.114 260.9)
XYZxyz(19.1838, 18.8116, 50.1873)
Luminance0.1881 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178BC #BC9551
analogous
#51ADBC #5178BC #6051BC
triadic
#5178BC #BC5178 #78BC51
tetradic
#5178BC #BC51AD #BC9551 #51BC60
square
#5178BC #BC51AD #BC9551 #51BC60
split-complementary
#5178BC #BC6051 #ADBC51
monochromatic
#29406A #3A5B96 #5178BC #7D9ACD #A9BDDE

Accessibility & contrast

On white

4.41
#5178BC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#5178BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178BC
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178BC#FFFFFF#000000##000000
##5178BC1.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C7EBF
Deuteranopia (green-blind)
#4F74BB
Tritanopia (blue-blind)
#008791
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5178bc;
/* rgb */ color: rgb(81, 120, 188);
/* oklch */ color: oklch(57.5% 0.114 260.9);
Tailwind
colors: {
  custom: {
    50: '#8a9ed0',
    500: '#5178bc',
    950: '#000000',
  },
}
SCSS
$custom: #5178bc;
$custom-light: #8a9ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#5178bc",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 188
  },
  "hsl": {
    "h": 218.131,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.575,
    "c": 0.11432,
    "h": 260.9
  },
  "luminance": 0.18813
}

Semantic roles & 50–950 ramp

primary
#5178BC
secondary
#CCBB9D
accent
#A554D4
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5178BC

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

Preview Lab → · Contrast checker → · Palette generator →

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