#5178CA#5178CA

#5178CA is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.3% C 0.134 H 263.6°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#5178CA
RGBrgb(81, 120, 202)
HSLhsl(221, 53%, 55%)
HSVhsv(221, 60%, 79%)
CMYKcmyk(59.9%, 40.6%, 0%, 20.8%)
CIE-LABlab(51.20, 11.48, -46.74)
CIE-LCHlch(51.20, 48.13, 283.80°)
OKLaboklab(58.31% -0.0149 -0.1329)
OKLCHoklch(58.31% 0.134 263.6)
XYZxyz(20.7668, 19.4448, 58.5245)
Luminance0.1945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178CA #CAA351
analogous
#51B5CA #5178CA #6651CA
triadic
#5178CA #CA5178 #78CA51
tetradic
#5178CA #CA51B5 #CAA351 #51CA66
square
#5178CA #CA51B5 #CAA351 #51CA66
split-complementary
#5178CA #CA6651 #B5CA51
monochromatic
#25417B #345AAA #5178CA #809CD8 #AFC1E7

Accessibility & contrast

On white

4.30
#5178CA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#5178CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178CA
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178CA#FFFFFF#000000##000000
##5178CA1.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5480CD
Deuteranopia (green-blind)
#4475C8
Tritanopia (blue-blind)
#008A97
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5178ca;
/* rgb */ color: rgb(81, 120, 202);
/* oklch */ color: oklch(58.3% 0.134 263.6);
Tailwind
colors: {
  custom: {
    50: '#8c9eda',
    500: '#5178ca',
    950: '#000000',
  },
}
SCSS
$custom: #5178ca;
$custom-light: #8c9eda;
$custom-dark: #000000;
JSON
{
  "hex": "#5178ca",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 202
  },
  "hsl": {
    "h": 220.661,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.58312,
    "c": 0.13374,
    "h": 263.6
  },
  "luminance": 0.19447
}

Semantic roles & 50–950 ramp

primary
#5178CA
secondary
#D5C4A2
accent
#AE4BDD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5178CA

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

Preview Lab → · Contrast checker → · Palette generator →

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