#5178DF#5178DF

#5178DF is a mid, vivid blue. Relative luminance 0.205; OKLCH L 59.6% C 0.163 H 266.0°. Best body text is #000000 at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#5178DF
RGBrgb(81, 120, 223)
HSLhsl(224, 69%, 60%)
HSVhsv(224, 64%, 87%)
CMYKcmyk(63.7%, 46.2%, 0%, 12.5%)
CIE-LABlab(52.41, 18.63, -56.72)
CIE-LCHlch(52.41, 59.70, 288.18°)
OKLaboklab(59.63% -0.0112 -0.1622)
OKLCHoklch(59.63% 0.163 266)
XYZxyz(23.4245, 20.5078, 72.5217)
Luminance0.2051 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178DF #DFB851
analogous
#51BFDF #5178DF #7151DF
triadic
#5178DF #DF5178 #78DF51
tetradic
#5178DF #DF51BF #DFB851 #51DF71
square
#5178DF #DF51BF #DFB851 #51DF71
split-complementary
#5178DF #DF7151 #BFDF51
monochromatic
#1C3F99 #2654CD #5178DF #85A0E9 #B8C8F2

Accessibility & contrast

On white

4.12
#5178DF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.10
#5178DF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178DF
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178DF#FFFFFF#000000##000000
##5178DF1.004.125.105.10
#FFFFFF4.121.0021.0021.00
#0000005.1021.001.001.00
##0000005.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#4584E3
Deuteranopia (green-blind)
#2A77DD
Tritanopia (blue-blind)
#0090A1
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5178df;
/* rgb */ color: rgb(81, 120, 223);
/* oklch */ color: oklch(59.6% 0.163 266.0);
Tailwind
colors: {
  custom: {
    50: '#8f9ee9',
    500: '#5178df',
    950: '#000000',
  },
}
SCSS
$custom: #5178df;
$custom-light: #8f9ee9;
$custom-dark: #000000;
JSON
{
  "hex": "#5178df",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 223
  },
  "hsl": {
    "h": 223.521,
    "s": 68.932,
    "l": 59.608
  },
  "oklch": {
    "l": 0.59626,
    "c": 0.16259,
    "h": 266
  },
  "luminance": 0.2051
}

Semantic roles & 50–950 ramp

primary
#5178DF
secondary
#E1D2AA
accent
#BC3CEC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5178DF

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

Preview Lab → · Contrast checker → · Palette generator →

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