#5179EB#5179EB

#5179EB is a mid, vivid blue. Relative luminance 0.214; OKLCH L 60.6% C 0.178 H 266.6°. Best body text is #000000 at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#5179EB
RGBrgb(81, 121, 235)
HSLhsl(224, 79%, 62%)
HSVhsv(224, 66%, 92%)
CMYKcmyk(65.5%, 48.5%, 0%, 7.8%)
CIE-LABlab(53.41, 22.14, -61.84)
CIE-LCHlch(53.41, 65.68, 289.70°)
OKLaboklab(60.62% -0.0106 -0.1772)
OKLCHoklch(60.62% 0.178 266.6)
XYZxyz(25.2209, 21.4198, 81.3865)
Luminance0.2142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5179EB #EBC351
analogous
#51C6EB #5179EB #7651EB
triadic
#5179EB #EB5179 #79EB51
tetradic
#5179EB #EB51C6 #EBC351 #51EB76
square
#5179EB #EB51C6 #EBC351 #51EB76
split-complementary
#5179EB #EB7651 #C6EB51
monochromatic
#143CAE #1A4FE5 #5179EB #88A3F1 #BFCEF8

Accessibility & contrast

On white

3.97
#5179EB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.28
#5179EB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5179EB
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5179EB#FFFFFF#000000##000000
##5179EB1.003.975.285.28
#FFFFFF3.971.0021.0021.00
#0000005.2821.001.001.00
##0000005.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B87EF
Deuteranopia (green-blind)
#1179E9
Tritanopia (blue-blind)
#0094A7
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5179eb;
/* rgb */ color: rgb(81, 121, 235);
/* oklch */ color: oklch(60.6% 0.178 266.6);
Tailwind
colors: {
  custom: {
    50: '#919ff2',
    500: '#5179eb',
    950: '#000000',
  },
}
SCSS
$custom: #5179eb;
$custom-light: #919ff2;
$custom-dark: #000000;
JSON
{
  "hex": "#5179eb",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 235
  },
  "hsl": {
    "h": 224.416,
    "s": 79.381,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60624,
    "c": 0.17757,
    "h": 266.6
  },
  "luminance": 0.21422
}

Semantic roles & 50–950 ramp

primary
#5179EB
secondary
#E8DAB0
accent
#A50ADC
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5179EB

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

Preview Lab → · Contrast checker → · Palette generator →

#5179EB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva