#5178BE#5178BE

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

Color values

HEX#5178BE
RGBrgb(81, 120, 190)
HSLhsl(219, 46%, 53%)
HSVhsv(219, 57%, 75%)
CMYKcmyk(57.4%, 36.8%, 0%, 25.5%)
CIE-LABlab(50.57, 7.46, -40.88)
CIE-LCHlch(50.57, 41.56, 280.35°)
OKLaboklab(57.61% -0.0176 -0.1158)
OKLCHoklch(57.61% 0.117 261.4)
XYZxyz(19.4009, 18.8984, 51.3306)
Luminance0.1890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178BE #BE9751
analogous
#51AFBE #5178BE #6051BE
triadic
#5178BE #BE5178 #78BE51
tetradic
#5178BE #BE51AF #BE9751 #51BE60
square
#5178BE #BE51AF #BE9751 #51BE60
split-complementary
#5178BE #BE6051 #AFBE51
monochromatic
#28416C #395B99 #5178BE #7E9BCF #AABDDF

Accessibility & contrast

On white

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

On black

4.78
#5178BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178BE
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178BE#FFFFFF#000000##000000
##5178BE1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5178be;
/* rgb */ color: rgb(81, 120, 190);
/* oklch */ color: oklch(57.6% 0.117 261.4);
Tailwind
colors: {
  custom: {
    50: '#8a9ed2',
    500: '#5178be',
    950: '#000000',
  },
}
SCSS
$custom: #5178be;
$custom-light: #8a9ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#5178be",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 190
  },
  "hsl": {
    "h": 218.532,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.57613,
    "c": 0.11709,
    "h": 261.4
  },
  "luminance": 0.189
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5178BE

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

Preview Lab → · Contrast checker → · Palette generator →

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