#5177F1#5177F1

#5177F1 is a mid, vivid blue. Relative luminance 0.213; OKLCH L 60.6% C 0.188 H 267.5°. Best body text is #000000 at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#5177F1
RGBrgb(81, 119, 241)
HSLhsl(226, 85%, 63%)
HSVhsv(226, 66%, 95%)
CMYKcmyk(66.4%, 50.6%, 0%, 5.5%)
CIE-LABlab(53.27, 25.43, -65.41)
CIE-LCHlch(53.27, 70.18, 291.25°)
OKLaboklab(60.64% -0.0082 -0.1878)
OKLCHoklch(60.64% 0.188 267.5)
XYZxyz(25.8619, 21.2914, 85.9488)
Luminance0.2129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177F1 #F1CB51
analogous
#51C7F1 #5177F1 #7B51F1
triadic
#5177F1 #F15177 #77F151
tetradic
#5177F1 #F151C7 #F1CB51 #51F17B
square
#5177F1 #F151C7 #F1CB51 #51F17B
split-complementary
#5177F1 #F17B51 #C7F151
monochromatic
#0F37B9 #184BEC #5177F1 #8AA3F6 #C2D0FA

Accessibility & contrast

On white

3.99
#5177F1 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.26
#5177F1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177F1
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177F1#FFFFFF#000000##000000
##5177F11.003.995.265.26
#FFFFFF3.991.0021.0021.00
#0000005.2621.001.001.00
##0000005.2621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5177f1;
/* rgb */ color: rgb(81, 119, 241);
/* oklch */ color: oklch(60.6% 0.188 267.5);
Tailwind
colors: {
  custom: {
    50: '#929df6',
    500: '#5177f1',
    950: '#000000',
  },
}
SCSS
$custom: #5177f1;
$custom-light: #929df6;
$custom-dark: #000000;
JSON
{
  "hex": "#5177f1",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 241
  },
  "hsl": {
    "h": 225.75,
    "s": 85.106,
    "l": 63.137
  },
  "oklch": {
    "l": 0.60641,
    "c": 0.18796,
    "h": 267.5
  },
  "luminance": 0.21294
}

Semantic roles & 50–950 ramp

primary
#5177F1
secondary
#ECDEB2
accent
#AD04E2
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5177F1

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

Preview Lab → · Contrast checker → · Palette generator →

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