#5178BF#5178BF

#5178BF is a mid, moderate blue. Relative luminance 0.189; OKLCH L 57.7% C 0.118 H 261.6°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#5178BF
RGBrgb(81, 120, 191)
HSLhsl(219, 46%, 53%)
HSVhsv(219, 58%, 75%)
CMYKcmyk(57.6%, 37.2%, 0%, 25.1%)
CIE-LABlab(50.62, 7.80, -41.38)
CIE-LCHlch(50.62, 42.11, 280.67°)
OKLaboklab(57.67% -0.0173 -0.1172)
OKLCHoklch(57.67% 0.118 261.6)
XYZxyz(19.5105, 18.9423, 51.9082)
Luminance0.1894 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178BF #BF9851
analogous
#51AFBF #5178BF #6151BF
triadic
#5178BF #BF5178 #78BF51
tetradic
#5178BF #BF51AF #BF9851 #51BF61
square
#5178BF #BF51AF #BF9851 #51BF61
split-complementary
#5178BF #BF6151 #AFBF51
monochromatic
#28416D #395B9A #5178BF #7E9BCF #AABDE0

Accessibility & contrast

On white

4.39
#5178BF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#5178BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178BF
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178BF#FFFFFF#000000##000000
##5178BF1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B7EC2
Deuteranopia (green-blind)
#4C74BD
Tritanopia (blue-blind)
#008892
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5178bf;
/* rgb */ color: rgb(81, 120, 191);
/* oklch */ color: oklch(57.7% 0.118 261.6);
Tailwind
colors: {
  custom: {
    50: '#8a9ed2',
    500: '#5178bf',
    950: '#000000',
  },
}
SCSS
$custom: #5178bf;
$custom-light: #8a9ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#5178bf",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 191
  },
  "hsl": {
    "h": 218.727,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.57669,
    "c": 0.11848,
    "h": 261.6
  },
  "luminance": 0.18944
}

Semantic roles & 50–950 ramp

primary
#5178BF
secondary
#CEBD9E
accent
#A752D6
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5178BF

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

Preview Lab → · Contrast checker → · Palette generator →

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