#5177F2#5177F2

#5177F2 is a mid, vivid blue. Relative luminance 0.214; OKLCH L 60.7% C 0.189 H 267.6°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5177F2
RGBrgb(81, 119, 242)
HSLhsl(226, 86%, 63%)
HSVhsv(226, 67%, 95%)
CMYKcmyk(66.5%, 50.8%, 0%, 5.1%)
CIE-LABlab(53.33, 25.78, -65.86)
CIE-LCHlch(53.33, 70.73, 291.38°)
OKLaboklab(60.71% -0.0081 -0.1891)
OKLCHoklch(60.71% 0.189 267.6)
XYZxyz(26.0117, 21.3513, 86.7376)
Luminance0.2135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177F2 #F2CC51
analogous
#51C7F2 #5177F2 #7C51F2
triadic
#5177F2 #F25177 #77F251
tetradic
#5177F2 #F251C7 #F2CC51 #51F27C
square
#5177F2 #F251C7 #F2CC51 #51F27C
split-complementary
#5177F2 #F27C51 #C7F251
monochromatic
#0E37BB #184AEE #5177F2 #8AA4F6 #C3D0FB

Accessibility & contrast

On white

3.98
#5177F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5177F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177F2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177F2#FFFFFF#000000##000000
##5177F21.003.985.275.27
#FFFFFF3.981.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C87F6
Deuteranopia (green-blind)
#0078EF
Tritanopia (blue-blind)
#0094A9
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5177f2;
/* rgb */ color: rgb(81, 119, 242);
/* oklch */ color: oklch(60.7% 0.189 267.6);
Tailwind
colors: {
  custom: {
    50: '#929df7',
    500: '#5177f2',
    950: '#000000',
  },
}
SCSS
$custom: #5177f2;
$custom-light: #929df7;
$custom-dark: #000000;
JSON
{
  "hex": "#5177f2",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 242
  },
  "hsl": {
    "h": 225.839,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60711,
    "c": 0.18928,
    "h": 267.6
  },
  "luminance": 0.21354
}

Semantic roles & 50–950 ramp

primary
#5177F2
secondary
#ECDFB3
accent
#AE03E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5177F2

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

Preview Lab → · Contrast checker → · Palette generator →

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