#5178CD#5178CD

#5178CD is a mid, vivid blue. Relative luminance 0.196; OKLCH L 58.5% C 0.138 H 264.0°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#5178CD
RGBrgb(81, 120, 205)
HSLhsl(221, 55%, 56%)
HSVhsv(221, 60%, 80%)
CMYKcmyk(60.5%, 41.5%, 0%, 19.6%)
CIE-LABlab(51.37, 12.49, -48.19)
CIE-LCHlch(51.37, 49.78, 284.53°)
OKLaboklab(58.49% -0.0143 -0.1371)
OKLCHoklch(58.49% 0.138 264)
XYZxyz(21.1255, 19.5882, 60.4134)
Luminance0.1959 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178CD #CDA651
analogous
#51B6CD #5178CD #6851CD
triadic
#5178CD #CD5178 #78CD51
tetradic
#5178CD #CD51B6 #CDA651 #51CD68
square
#5178CD #CD51B6 #CDA651 #51CD68
split-complementary
#5178CD #CD6851 #B6CD51
monochromatic
#25417F #3259AF #5178CD #819DDB #B0C2E8

Accessibility & contrast

On white

4.27
#5178CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5178CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178CD
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178CD#FFFFFF#000000##000000
##5178CD1.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5280D0
Deuteranopia (green-blind)
#4175CB
Tritanopia (blue-blind)
#008B98
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5178cd;
/* rgb */ color: rgb(81, 120, 205);
/* oklch */ color: oklch(58.5% 0.138 264.0);
Tailwind
colors: {
  custom: {
    50: '#8c9edd',
    500: '#5178cd',
    950: '#000000',
  },
}
SCSS
$custom: #5178cd;
$custom-light: #8c9edd;
$custom-dark: #000000;
JSON
{
  "hex": "#5178cd",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 205
  },
  "hsl": {
    "h": 221.129,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58493,
    "c": 0.1379,
    "h": 264
  },
  "luminance": 0.1959
}

Semantic roles & 50–950 ramp

primary
#5178CD
secondary
#D7C6A3
accent
#B049DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5178CD

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

Preview Lab → · Contrast checker → · Palette generator →

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