#5177F9#5177F9

#5177F9 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 61.2% C 0.199 H 267.8°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5177F9
RGBrgb(81, 119, 249)
HSLhsl(226, 93%, 65%)
HSVhsv(226, 67%, 98%)
CMYKcmyk(67.5%, 52.2%, 0%, 2.4%)
CIE-LABlab(53.79, 28.19, -69.01)
CIE-LCHlch(53.79, 74.54, 292.22°)
OKLaboklab(61.21% -0.0075 -0.1984)
OKLCHoklch(61.21% 0.199 267.8)
XYZxyz(27.0832, 21.7799, 92.3808)
Luminance0.2178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177F9 #F9D351
analogous
#51CBF9 #5177F9 #7F51F9
triadic
#5177F9 #F95177 #77F951
tetradic
#5177F9 #F951CB #F9D351 #51F97F
square
#5177F9 #F951CB #F9D351 #51F97F
split-complementary
#5177F9 #F97F51 #CBF951
monochromatic
#0733C9 #1649F7 #5177F9 #8CA5FB #C7D3FD

Accessibility & contrast

On white

3.92
#5177F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#5177F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177F9
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177F9#FFFFFF#000000##000000
##5177F91.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#1E89FE
Deuteranopia (green-blind)
#0079F6
Tritanopia (blue-blind)
#0096AD
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5177f9;
/* rgb */ color: rgb(81, 119, 249);
/* oklch */ color: oklch(61.2% 0.199 267.8);
Tailwind
colors: {
  custom: {
    50: '#949dfc',
    500: '#5177f9',
    950: '#000000',
  },
}
SCSS
$custom: #5177f9;
$custom-light: #949dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#5177f9",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 249
  },
  "hsl": {
    "h": 226.429,
    "s": 93.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61206,
    "c": 0.1985,
    "h": 267.8
  },
  "luminance": 0.21783
}

Semantic roles & 50–950 ramp

primary
#5177F9
secondary
#F0E3B6
accent
#B200E6
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E18
muted
#7E7E86

Preview Lab

Preview with #5177F9

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

Preview Lab → · Contrast checker → · Palette generator →

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