#5174E8#5174E8

#5174E8 is a mid, vivid blue. Relative luminance 0.201; OKLCH L 59.4% C 0.180 H 268.0°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5174E8
RGBrgb(81, 116, 232)
HSLhsl(226, 77%, 61%)
HSVhsv(226, 65%, 91%)
CMYKcmyk(65.1%, 50%, 0%, 9%)
CIE-LABlab(51.91, 24.19, -62.57)
CIE-LCHlch(51.91, 67.09, 291.13°)
OKLaboklab(59.43% -0.0064 -0.1795)
OKLCHoklch(59.43% 0.18 268)
XYZxyz(24.1992, 20.0641, 78.9257)
Luminance0.2007 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174E8 #E8C551
analogous
#51C0E8 #5174E8 #7A51E8
triadic
#5174E8 #E85174 #74E851
tetradic
#5174E8 #E851C0 #E8C551 #51E87A
square
#5174E8 #E851C0 #E8C551 #51E87A
split-complementary
#5174E8 #E87A51 #C0E851
monochromatic
#1638A8 #1D4ADE #5174E8 #879FEF #BDCAF6

Accessibility & contrast

On white

4.19
#5174E8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5174E8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174E8
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174E8#FFFFFF#000000##000000
##5174E81.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3183EC
Deuteranopia (green-blind)
#0075E6
Tritanopia (blue-blind)
#008FA3
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5174e8;
/* rgb */ color: rgb(81, 116, 232);
/* oklch */ color: oklch(59.4% 0.180 268.0);
Tailwind
colors: {
  custom: {
    50: '#919bf0',
    500: '#5174e8',
    950: '#000000',
  },
}
SCSS
$custom: #5174e8;
$custom-light: #919bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#5174e8",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 232
  },
  "hsl": {
    "h": 226.093,
    "s": 76.65,
    "l": 61.373
  },
  "oklch": {
    "l": 0.59426,
    "c": 0.17958,
    "h": 268
  },
  "luminance": 0.20066
}

Semantic roles & 50–950 ramp

primary
#5174E8
secondary
#E7DAAE
accent
#AA0DD9
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5174E8

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

Preview Lab → · Contrast checker → · Palette generator →

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