#5178FF#5178FF

#5178FF is a mid, highly saturated blue. Relative luminance 0.224; OKLCH L 61.8% C 0.205 H 267.8°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5178FF
RGBrgb(81, 120, 255)
HSLhsl(227, 100%, 66%)
HSVhsv(227, 68%, 100%)
CMYKcmyk(68.2%, 52.9%, 0%, 0%)
CIE-LABlab(54.45, 29.64, -71.26)
CIE-LCHlch(54.45, 77.18, 292.59°)
OKLaboklab(61.83% -0.0079 -0.205)
OKLCHoklch(61.83% 0.205 267.8)
XYZxyz(28.1536, 22.3995, 97.4282)
Luminance0.2240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178FF #FFD851
analogous
#51CFFF #5178FF #8151FF
triadic
#5178FF #FF5178 #78FF51
tetradic
#5178FF #FF51CF #FFD851 #51FF81
square
#5178FF #FF51CF #FFD851 #51FF81
split-complementary
#5178FF #FF8151 #CFFF51
monochromatic
#0030D6 #1449FF #5178FF #8EA7FF #CBD7FF

Accessibility & contrast

On white

3.83
#5178FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#5178FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178FF
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178FF#FFFFFF#000000##000000
##5178FF1.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#108BFF
Deuteranopia (green-blind)
#007BFC
Tritanopia (blue-blind)
#0098B0
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5178ff;
/* rgb */ color: rgb(81, 120, 255);
/* oklch */ color: oklch(61.8% 0.205 267.8);
Tailwind
colors: {
  custom: {
    50: '#959eff',
    500: '#5178ff',
    950: '#000000',
  },
}
SCSS
$custom: #5178ff;
$custom-light: #959eff;
$custom-dark: #000000;
JSON
{
  "hex": "#5178ff",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 255
  },
  "hsl": {
    "h": 226.552,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.61829,
    "c": 0.20513,
    "h": 267.8
  },
  "luminance": 0.22402
}

Semantic roles & 50–950 ramp

primary
#5178FF
secondary
#F3E6B9
accent
#B200E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E18
muted
#7F7E86

Preview Lab

Preview with #5178FF

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

Preview Lab → · Contrast checker → · Palette generator →

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