#5178BD#5178BD

#5178BD is a mid, moderate blue. Relative luminance 0.189; OKLCH L 57.6% C 0.116 H 261.1°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#5178BD
RGBrgb(81, 120, 189)
HSLhsl(218, 45%, 53%)
HSVhsv(218, 57%, 74%)
CMYKcmyk(57.1%, 36.5%, 0%, 25.9%)
CIE-LABlab(50.52, 7.13, -40.39)
CIE-LCHlch(50.52, 41.02, 280.01°)
OKLaboklab(57.56% -0.0178 -0.1143)
OKLCHoklch(57.56% 0.116 261.1)
XYZxyz(19.2920, 18.8548, 50.7570)
Luminance0.1886 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178BD #BD9651
analogous
#51AEBD #5178BD #6051BD
triadic
#5178BD #BD5178 #78BD51
tetradic
#5178BD #BD51AE #BD9651 #51BD60
square
#5178BD #BD51AE #BD9651 #51BD60
split-complementary
#5178BD #BD6051 #AEBD51
monochromatic
#29416B #395B97 #5178BD #7D9ACE #AABDDF

Accessibility & contrast

On white

4.40
#5178BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#5178BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178BD
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178BD#FFFFFF#000000##000000
##5178BD1.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5178bd;
/* rgb */ color: rgb(81, 120, 189);
/* oklch */ color: oklch(57.6% 0.116 261.1);
Tailwind
colors: {
  custom: {
    50: '#8a9ed1',
    500: '#5178bd',
    950: '#000000',
  },
}
SCSS
$custom: #5178bd;
$custom-light: #8a9ed1;
$custom-dark: #000000;
JSON
{
  "hex": "#5178bd",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 189
  },
  "hsl": {
    "h": 218.333,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.57556,
    "c": 0.1157,
    "h": 261.1
  },
  "luminance": 0.18856
}

Semantic roles & 50–950 ramp

primary
#5178BD
secondary
#CCBB9E
accent
#A653D5
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5178BD

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

Preview Lab → · Contrast checker → · Palette generator →

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