#5178CB#5178CB

#5178CB is a mid, vivid blue. Relative luminance 0.195; OKLCH L 58.4% C 0.135 H 263.8°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5178CB
RGBrgb(81, 120, 203)
HSLhsl(221, 54%, 56%)
HSVhsv(221, 60%, 80%)
CMYKcmyk(60.1%, 40.9%, 0%, 20.4%)
CIE-LABlab(51.26, 11.82, -47.23)
CIE-LCHlch(51.26, 48.68, 284.05°)
OKLaboklab(58.37% -0.0147 -0.1343)
OKLCHoklch(58.37% 0.135 263.8)
XYZxyz(20.8856, 19.4923, 59.1501)
Luminance0.1949 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178CB #CBA451
analogous
#51B5CB #5178CB #6751CB
triadic
#5178CB #CB5178 #78CB51
tetradic
#5178CB #CB51B5 #CBA451 #51CB67
square
#5178CB #CB51B5 #CBA451 #51CB67
split-complementary
#5178CB #CB6751 #B5CB51
monochromatic
#25417C #335AAC #5178CB #809DD9 #AFC1E7

Accessibility & contrast

On white

4.29
#5178CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#5178CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178CB
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178CB#FFFFFF#000000##000000
##5178CB1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5480CE
Deuteranopia (green-blind)
#4375C9
Tritanopia (blue-blind)
#008B98
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5178cb;
/* rgb */ color: rgb(81, 120, 203);
/* oklch */ color: oklch(58.4% 0.135 263.8);
Tailwind
colors: {
  custom: {
    50: '#8c9edb',
    500: '#5178cb',
    950: '#000000',
  },
}
SCSS
$custom: #5178cb;
$custom-light: #8c9edb;
$custom-dark: #000000;
JSON
{
  "hex": "#5178cb",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 203
  },
  "hsl": {
    "h": 220.82,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.58372,
    "c": 0.13512,
    "h": 263.8
  },
  "luminance": 0.19494
}

Semantic roles & 50–950 ramp

primary
#5178CB
secondary
#D5C5A3
accent
#AE4ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5178CB

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

Preview Lab → · Contrast checker → · Palette generator →

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