#5174FF#5174FF

#5174FF is a mid, highly saturated blue. Relative luminance 0.215; OKLCH L 61.1% C 0.210 H 268.7°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#5174FF
RGBrgb(81, 116, 255)
HSLhsl(228, 100%, 66%)
HSVhsv(228, 68%, 100%)
CMYKcmyk(68.2%, 54.5%, 0%, 0%)
CIE-LABlab(53.45, 32.09, -72.89)
CIE-LCHlch(53.45, 79.64, 293.76°)
OKLaboklab(61.07% -0.0047 -0.2098)
OKLCHoklch(61.07% 0.21 268.7)
XYZxyz(27.6825, 21.4574, 97.2712)
Luminance0.2146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174FF #FFDC51
analogous
#51CBFF #5174FF #8551FF
triadic
#5174FF #FF5174 #74FF51
tetradic
#5174FF #FF51CB #FFDC51 #51FF85
square
#5174FF #FF51CB #FFDC51 #51FF85
split-complementary
#5174FF #FF8551 #CBFF51
monochromatic
#002BD6 #1443FF #5174FF #8EA5FF #CBD6FF

Accessibility & contrast

On white

3.97
#5174FF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#5174FF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174FF
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174FF#FFFFFF#000000##000000
##5174FF1.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0088FF
Deuteranopia (green-blind)
#0078FC
Tritanopia (blue-blind)
#0096AE
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5174ff;
/* rgb */ color: rgb(81, 116, 255);
/* oklch */ color: oklch(61.1% 0.210 268.7);
Tailwind
colors: {
  custom: {
    50: '#959bff',
    500: '#5174ff',
    950: '#000000',
  },
}
SCSS
$custom: #5174ff;
$custom-light: #959bff;
$custom-dark: #000000;
JSON
{
  "hex": "#5174ff",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 255
  },
  "hsl": {
    "h": 227.931,
    "s": 100,
    "l": 65.882
  },
  "oklch": {
    "l": 0.61074,
    "c": 0.20986,
    "h": 268.7
  },
  "luminance": 0.2146
}

Semantic roles & 50–950 ramp

primary
#5174FF
secondary
#F3E7B9
accent
#B700E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E18
muted
#7F7E86

Preview Lab

Preview with #5174FF

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

Preview Lab → · Contrast checker → · Palette generator →

#5174FF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva