#5179E4#5179E4

#5179E4 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.2% C 0.168 H 266.1°. Best body text is #000000 at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#5179E4
RGBrgb(81, 121, 228)
HSLhsl(224, 73%, 61%)
HSVhsv(224, 64%, 89%)
CMYKcmyk(64.5%, 46.9%, 0%, 10.6%)
CIE-LABlab(52.98, 19.73, -58.62)
CIE-LCHlch(52.98, 61.85, 288.60°)
OKLaboklab(60.16% -0.0115 -0.1678)
OKLCHoklch(60.16% 0.168 266.1)
XYZxyz(24.2295, 21.0233, 76.1648)
Luminance0.2103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5179E4 #E4BC51
analogous
#51C3E4 #5179E4 #7251E4
triadic
#5179E4 #E45179 #79E451
tetradic
#5179E4 #E451C3 #E4BC51 #51E472
square
#5179E4 #E451C3 #E4BC51 #51E472
split-complementary
#5179E4 #E47251 #C3E451
monochromatic
#193EA2 #2153D7 #5179E4 #86A2EC #BBCBF4

Accessibility & contrast

On white

4.03
#5179E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.21
#5179E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5179E4
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5179E4#FFFFFF#000000##000000
##5179E41.004.035.215.21
#FFFFFF4.031.0021.0021.00
#0000005.2121.001.001.00
##0000005.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4286E8
Deuteranopia (green-blind)
#2478E2
Tritanopia (blue-blind)
#0092A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5179e4;
/* rgb */ color: rgb(81, 121, 228);
/* oklch */ color: oklch(60.2% 0.168 266.1);
Tailwind
colors: {
  custom: {
    50: '#909fed',
    500: '#5179e4',
    950: '#000000',
  },
}
SCSS
$custom: #5179e4;
$custom-light: #909fed;
$custom-dark: #000000;
JSON
{
  "hex": "#5179e4",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 228
  },
  "hsl": {
    "h": 223.673,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.60157,
    "c": 0.16815,
    "h": 266.1
  },
  "luminance": 0.21026
}

Semantic roles & 50–950 ramp

primary
#5179E4
secondary
#E4D5AC
accent
#A010D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5179E4

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

Preview Lab → · Contrast checker → · Palette generator →

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