#5179E2#5179E2

#5179E2 is a mid, vivid blue. Relative luminance 0.209; OKLCH L 60.0% C 0.165 H 265.9°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#5179E2
RGBrgb(81, 121, 226)
HSLhsl(223, 71%, 60%)
HSVhsv(223, 64%, 89%)
CMYKcmyk(64.2%, 46.5%, 0%, 11.4%)
CIE-LABlab(52.85, 19.04, -57.69)
CIE-LCHlch(52.85, 60.75, 288.27°)
OKLaboklab(60.03% -0.0118 -0.165)
OKLCHoklch(60.03% 0.165 265.9)
XYZxyz(23.9534, 20.9128, 74.7110)
Luminance0.2092 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5179E2 #E2BA51
analogous
#51C2E2 #5179E2 #7151E2
triadic
#5179E2 #E25179 #79E251
tetradic
#5179E2 #E251C2 #E2BA51 #51E271
square
#5179E2 #E251C2 #E2BA51 #51E271
split-complementary
#5179E2 #E27151 #C2E251
monochromatic
#1A3F9E #2354D3 #5179E2 #85A1EB #BACAF3

Accessibility & contrast

On white

4.05
#5179E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#5179E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5179E2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5179E2#FFFFFF#000000##000000
##5179E21.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#4485E6
Deuteranopia (green-blind)
#2878E0
Tritanopia (blue-blind)
#0091A2
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5179e2;
/* rgb */ color: rgb(81, 121, 226);
/* oklch */ color: oklch(60.0% 0.165 265.9);
Tailwind
colors: {
  custom: {
    50: '#909fec',
    500: '#5179e2',
    950: '#000000',
  },
}
SCSS
$custom: #5179e2;
$custom-light: #909fec;
$custom-dark: #000000;
JSON
{
  "hex": "#5179e2",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 226
  },
  "hsl": {
    "h": 223.448,
    "s": 71.429,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60026,
    "c": 0.16545,
    "h": 265.9
  },
  "luminance": 0.20915
}

Semantic roles & 50–950 ramp

primary
#5179E2
secondary
#E3D4AC
accent
#9E12D3
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5179E2

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

Preview Lab → · Contrast checker → · Palette generator →

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