#5178E4#5178E4

#5178E4 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.0% C 0.169 H 266.4°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5178E4
RGBrgb(81, 120, 228)
HSLhsl(224, 73%, 61%)
HSVhsv(224, 64%, 89%)
CMYKcmyk(64.5%, 47.4%, 0%, 10.6%)
CIE-LABlab(52.71, 20.34, -59.04)
CIE-LCHlch(52.71, 62.45, 289.01°)
OKLaboklab(59.95% -0.0106 -0.169)
OKLCHoklch(59.95% 0.169 266.4)
XYZxyz(24.1086, 20.7815, 76.1245)
Luminance0.2078 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178E4 #E4BD51
analogous
#51C1E4 #5178E4 #7451E4
triadic
#5178E4 #E45178 #78E451
tetradic
#5178E4 #E451C1 #E4BD51 #51E474
square
#5178E4 #E451C1 #E4BD51 #51E474
split-complementary
#5178E4 #E47451 #C1E451
monochromatic
#193DA2 #2151D7 #5178E4 #86A1EC #BBCAF4

Accessibility & contrast

On white

4.07
#5178E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5178E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178E4
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178E4#FFFFFF#000000##000000
##5178E41.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4085E8
Deuteranopia (green-blind)
#2177E2
Tritanopia (blue-blind)
#0091A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5178e4;
/* rgb */ color: rgb(81, 120, 228);
/* oklch */ color: oklch(60.0% 0.169 266.4);
Tailwind
colors: {
  custom: {
    50: '#909eed',
    500: '#5178e4',
    950: '#000000',
  },
}
SCSS
$custom: #5178e4;
$custom-light: #909eed;
$custom-dark: #000000;
JSON
{
  "hex": "#5178e4",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 228
  },
  "hsl": {
    "h": 224.082,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59954,
    "c": 0.16936,
    "h": 266.4
  },
  "luminance": 0.20784
}

Semantic roles & 50–950 ramp

primary
#5178E4
secondary
#E4D6AC
accent
#A110D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5178E4

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

Preview Lab → · Contrast checker → · Palette generator →

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