#5178E9#5178E9

#5178E9 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.3% C 0.176 H 266.8°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5178E9
RGBrgb(81, 120, 233)
HSLhsl(225, 78%, 62%)
HSVhsv(225, 65%, 91%)
CMYKcmyk(65.2%, 48.5%, 0%, 8.6%)
CIE-LABlab(53.02, 22.06, -61.35)
CIE-LCHlch(53.02, 65.19, 289.78°)
OKLaboklab(60.29% -0.0099 -0.1758)
OKLCHoklch(60.29% 0.176 266.8)
XYZxyz(24.8127, 21.0631, 79.8330)
Luminance0.2107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178E9 #E9C251
analogous
#51C4E9 #5178E9 #7651E9
triadic
#5178E9 #E95178 #78E951
tetradic
#5178E9 #E951C4 #E9C251 #51E976
square
#5178E9 #E951C4 #E9C251 #51E976
split-complementary
#5178E9 #E97651 #C4E951
monochromatic
#163CAA #1C4FE0 #5178E9 #87A2F0 #BECCF7

Accessibility & contrast

On white

4.03
#5178E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#5178E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178E9
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178E9#FFFFFF#000000##000000
##5178E91.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B86ED
Deuteranopia (green-blind)
#1278E7
Tritanopia (blue-blind)
#0092A5
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5178e9;
/* rgb */ color: rgb(81, 120, 233);
/* oklch */ color: oklch(60.3% 0.176 266.8);
Tailwind
colors: {
  custom: {
    50: '#919ef1',
    500: '#5178e9',
    950: '#000000',
  },
}
SCSS
$custom: #5178e9;
$custom-light: #919ef1;
$custom-dark: #000000;
JSON
{
  "hex": "#5178e9",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 233
  },
  "hsl": {
    "h": 224.605,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.60289,
    "c": 0.17609,
    "h": 266.8
  },
  "luminance": 0.21065
}

Semantic roles & 50–950 ramp

primary
#5178E9
secondary
#E7D9AF
accent
#A50CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5178E9

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

Preview Lab → · Contrast checker → · Palette generator →

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