#5178F2#5178F2

#5178F2 is a mid, vivid blue. Relative luminance 0.216; OKLCH L 60.9% C 0.188 H 267.3°. Best body text is #000000 at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#5178F2
RGBrgb(81, 120, 242)
HSLhsl(225, 86%, 63%)
HSVhsv(225, 67%, 95%)
CMYKcmyk(66.5%, 50.4%, 0%, 5.1%)
CIE-LABlab(53.59, 25.16, -65.45)
CIE-LCHlch(53.59, 70.12, 291.03°)
OKLaboklab(60.91% -0.0089 -0.1879)
OKLCHoklch(60.91% 0.188 267.3)
XYZxyz(26.1313, 21.5906, 86.7775)
Luminance0.2159 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178F2 #F2CB51
analogous
#51C8F2 #5178F2 #7A51F2
triadic
#5178F2 #F25178 #78F251
tetradic
#5178F2 #F251C8 #F2CB51 #51F27A
square
#5178F2 #F251C8 #F2CB51 #51F27A
split-complementary
#5178F2 #F27A51 #C8F251
monochromatic
#0E38BB #184CEE #5178F2 #8AA4F6 #C3D0FB

Accessibility & contrast

On white

3.95
#5178F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.32
#5178F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178F2
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178F2#FFFFFF#000000##000000
##5178F21.003.955.325.32
#FFFFFF3.951.0021.0021.00
#0000005.3221.001.001.00
##0000005.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F88F6
Deuteranopia (green-blind)
#0079F0
Tritanopia (blue-blind)
#0095AA
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5178f2;
/* rgb */ color: rgb(81, 120, 242);
/* oklch */ color: oklch(60.9% 0.188 267.3);
Tailwind
colors: {
  custom: {
    50: '#929ef7',
    500: '#5178f2',
    950: '#000000',
  },
}
SCSS
$custom: #5178f2;
$custom-light: #929ef7;
$custom-dark: #000000;
JSON
{
  "hex": "#5178f2",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 242
  },
  "hsl": {
    "h": 225.466,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60906,
    "c": 0.18808,
    "h": 267.3
  },
  "luminance": 0.21593
}

Semantic roles & 50–950 ramp

primary
#5178F2
secondary
#ECDEB3
accent
#AC03E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5178F2

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

Preview Lab → · Contrast checker → · Palette generator →

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