#5178EB#5178EB

#5178EB is a mid, vivid blue. Relative luminance 0.212; OKLCH L 60.4% C 0.179 H 266.9°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5178EB
RGBrgb(81, 120, 235)
HSLhsl(225, 79%, 62%)
HSVhsv(225, 66%, 92%)
CMYKcmyk(65.5%, 48.9%, 0%, 7.8%)
CIE-LABlab(53.14, 22.75, -62.26)
CIE-LCHlch(53.14, 66.29, 290.07°)
OKLaboklab(60.43% -0.0097 -0.1785)
OKLCHoklch(60.43% 0.179 266.9)
XYZxyz(25.1000, 21.1781, 81.3462)
Luminance0.2118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178EB #EBC451
analogous
#51C5EB #5178EB #7751EB
triadic
#5178EB #EB5178 #78EB51
tetradic
#5178EB #EB51C5 #EBC451 #51EB77
square
#5178EB #EB51C5 #EBC451 #51EB77
split-complementary
#5178EB #EB7751 #C5EB51
monochromatic
#143BAE #1A4DE5 #5178EB #88A3F1 #BFCDF8

Accessibility & contrast

On white

4.01
#5178EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#5178EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178EB
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178EB#FFFFFF#000000##000000
##5178EB1.004.015.245.24
#FFFFFF4.011.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3886EF
Deuteranopia (green-blind)
#0878E9
Tritanopia (blue-blind)
#0093A6
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5178eb;
/* rgb */ color: rgb(81, 120, 235);
/* oklch */ color: oklch(60.4% 0.179 266.9);
Tailwind
colors: {
  custom: {
    50: '#919ef2',
    500: '#5178eb',
    950: '#000000',
  },
}
SCSS
$custom: #5178eb;
$custom-light: #919ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#5178eb",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 224.805,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60425,
    "c": 0.17876,
    "h": 266.9
  },
  "luminance": 0.2118
}

Semantic roles & 50–950 ramp

primary
#5178EB
secondary
#E8DAB0
accent
#A70ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5178EB

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

Preview Lab → · Contrast checker → · Palette generator →

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