#5178DA#5178DA

#5178DA is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.3% C 0.156 H 265.6°. Best body text is #000000 at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#5178DA
RGBrgb(81, 120, 218)
HSLhsl(223, 65%, 59%)
HSVhsv(223, 63%, 85%)
CMYKcmyk(62.8%, 45%, 0%, 14.5%)
CIE-LABlab(52.11, 16.91, -54.38)
CIE-LCHlch(52.11, 56.95, 287.28°)
OKLaboklab(59.3% -0.012 -0.1553)
OKLCHoklch(59.3% 0.156 265.6)
XYZxyz(22.7603, 20.2422, 69.0238)
Luminance0.2024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178DA #DAB351
analogous
#51BCDA #5178DA #6E51DA
triadic
#5178DA #DA5178 #78DA51
tetradic
#5178DA #DA51BC #DAB351 #51DA6E
square
#5178DA #DA51BC #DAB351 #51DA6E
split-complementary
#5178DA #DA6E51 #BCDA51
monochromatic
#1F4092 #2A56C4 #5178DA #839FE5 #B6C6EF

Accessibility & contrast

On white

4.16
#5178DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.05
#5178DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178DA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178DA#FFFFFF#000000##000000
##5178DA1.004.165.055.05
#FFFFFF4.161.0021.0021.00
#0000005.0521.001.001.00
##0000005.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4983DE
Deuteranopia (green-blind)
#3276D8
Tritanopia (blue-blind)
#008E9E
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5178da;
/* rgb */ color: rgb(81, 120, 218);
/* oklch */ color: oklch(59.3% 0.156 265.6);
Tailwind
colors: {
  custom: {
    50: '#8e9ee6',
    500: '#5178da',
    950: '#000000',
  },
}
SCSS
$custom: #5178da;
$custom-light: #8e9ee6;
$custom-dark: #000000;
JSON
{
  "hex": "#5178da",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 218
  },
  "hsl": {
    "h": 222.92,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.59303,
    "c": 0.15577,
    "h": 265.6
  },
  "luminance": 0.20244
}

Semantic roles & 50–950 ramp

primary
#5178DA
secondary
#DECFA8
accent
#B840E8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5178DA

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

Preview Lab → · Contrast checker → · Palette generator →

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