#5178B2#5178B2

#5178B2 is a mid, moderate blue. Relative luminance 0.184; OKLCH L 57.0% C 0.101 H 258.1°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5178B2
RGBrgb(81, 120, 178)
HSLhsl(216, 39%, 51%)
HSVhsv(216, 54%, 70%)
CMYKcmyk(54.5%, 32.6%, 0%, 30.2%)
CIE-LABlab(49.97, 3.53, -34.90)
CIE-LCHlch(49.97, 35.08, 275.77°)
OKLaboklab(56.95% -0.0207 -0.0983)
OKLCHoklch(56.95% 0.101 258.1)
XYZxyz(18.1429, 18.3952, 44.7054)
Luminance0.1840 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178B2 #B28B51
analogous
#51A8B2 #5178B2 #5A51B2
triadic
#5178B2 #B25178 #78B251
tetradic
#5178B2 #B251A8 #B28B51 #51B25A
square
#5178B2 #B251A8 #B28B51 #51B25A
split-complementary
#5178B2 #B25A51 #A8B251
monochromatic
#2A3F5F #3D5B89 #5178B2 #7B99C5 #A6BAD8

Accessibility & contrast

On white

4.49
#5178B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#5178B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178B2
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178B2#FFFFFF#000000##000000
##5178B21.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#617CB4
Deuteranopia (green-blind)
#5573B1
Tritanopia (blue-blind)
#18858D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5178b2;
/* rgb */ color: rgb(81, 120, 178);
/* oklch */ color: oklch(57.0% 0.101 258.1);
Tailwind
colors: {
  custom: {
    50: '#889ec9',
    500: '#5178b2',
    950: '#000000',
  },
}
SCSS
$custom: #5178b2;
$custom-light: #889ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#5178b2",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 178
  },
  "hsl": {
    "h": 215.876,
    "s": 38.645,
    "l": 50.784
  },
  "oklch": {
    "l": 0.56953,
    "c": 0.1005,
    "h": 258.1
  },
  "luminance": 0.18397
}

Semantic roles & 50–950 ramp

primary
#5178B2
secondary
#C5B49A
accent
#9F59CF
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5178B2

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

Preview Lab → · Contrast checker → · Palette generator →

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