#5176F2#5176F2

#5176F2 is a mid, vivid blue. Relative luminance 0.211; OKLCH L 60.5% C 0.190 H 267.8°. Best body text is #000000 at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#5176F2
RGBrgb(81, 118, 242)
HSLhsl(226, 86%, 63%)
HSVhsv(226, 67%, 95%)
CMYKcmyk(66.5%, 51.2%, 0%, 5.1%)
CIE-LABlab(53.07, 26.40, -66.28)
CIE-LCHlch(53.07, 71.34, 291.71°)
OKLaboklab(60.52% -0.0072 -0.1903)
OKLCHoklch(60.52% 0.19 267.8)
XYZxyz(25.8933, 21.1145, 86.6981)
Luminance0.2112 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176F2 #F2CD51
analogous
#51C6F2 #5176F2 #7C51F2
triadic
#5176F2 #F25176 #76F251
tetradic
#5176F2 #F251C6 #F2CD51 #51F27C
square
#5176F2 #F251C6 #F2CD51 #51F27C
split-complementary
#5176F2 #F27C51 #C6F251
monochromatic
#0E36BB #1849EE #5176F2 #8AA3F6 #C3D0FB

Accessibility & contrast

On white

4.02
#5176F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.22
#5176F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176F2
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176F2#FFFFFF#000000##000000
##5176F21.004.025.225.22
#FFFFFF4.021.0021.0021.00
#0000005.2221.001.001.00
##0000005.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#2886F6
Deuteranopia (green-blind)
#0078EF
Tritanopia (blue-blind)
#0093A9
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5176f2;
/* rgb */ color: rgb(81, 118, 242);
/* oklch */ color: oklch(60.5% 0.190 267.8);
Tailwind
colors: {
  custom: {
    50: '#929df7',
    500: '#5176f2',
    950: '#000000',
  },
}
SCSS
$custom: #5176f2;
$custom-light: #929df7;
$custom-dark: #000000;
JSON
{
  "hex": "#5176f2",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 242
  },
  "hsl": {
    "h": 226.211,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.60516,
    "c": 0.19049,
    "h": 267.8
  },
  "luminance": 0.21117
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5176F2

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

Preview Lab → · Contrast checker → · Palette generator →

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