#5178CE#5178CE

#5178CE is a mid, vivid blue. Relative luminance 0.196; OKLCH L 58.6% C 0.139 H 264.2°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5178CE
RGBrgb(81, 120, 206)
HSLhsl(221, 56%, 56%)
HSVhsv(221, 61%, 81%)
CMYKcmyk(60.7%, 41.7%, 0%, 19.2%)
CIE-LABlab(51.42, 12.83, -48.67)
CIE-LCHlch(51.42, 50.33, 284.77°)
OKLaboklab(58.55% -0.0141 -0.1386)
OKLCHoklch(58.55% 0.139 264.2)
XYZxyz(21.2465, 19.6367, 61.0512)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178CE #CEA751
analogous
#51B7CE #5178CE #6951CE
triadic
#5178CE #CE5178 #78CE51
tetradic
#5178CE #CE51B7 #CEA751 #51CE69
square
#5178CE #CE51B7 #CEA751 #51CE69
split-complementary
#5178CE #CE6951 #B7CE51
monochromatic
#244180 #3259B0 #5178CE #819DDB #B1C2E9

Accessibility & contrast

On white

4.26
#5178CE on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5178CE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178CE
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178CE#FFFFFF#000000##000000
##5178CE1.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#5281D1
Deuteranopia (green-blind)
#4075CC
Tritanopia (blue-blind)
#008B99
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5178ce;
/* rgb */ color: rgb(81, 120, 206);
/* oklch */ color: oklch(58.6% 0.139 264.2);
Tailwind
colors: {
  custom: {
    50: '#8c9edd',
    500: '#5178ce',
    950: '#000000',
  },
}
SCSS
$custom: #5178ce;
$custom-light: #8c9edd;
$custom-dark: #000000;
JSON
{
  "hex": "#5178ce",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 206
  },
  "hsl": {
    "h": 221.28,
    "s": 56.054,
    "l": 56.275
  },
  "oklch": {
    "l": 0.58553,
    "c": 0.13928,
    "h": 264.2
  },
  "luminance": 0.19639
}

Semantic roles & 50–950 ramp

primary
#5178CE
secondary
#D7C7A4
accent
#B048DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5178CE

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

Preview Lab → · Contrast checker → · Palette generator →

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