#5174E6#5174E6

#5174E6 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.3% C 0.177 H 267.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#5174E6
RGBrgb(81, 116, 230)
HSLhsl(226, 75%, 61%)
HSVhsv(226, 65%, 90%)
CMYKcmyk(64.8%, 49.6%, 0%, 9.8%)
CIE-LABlab(51.78, 23.50, -61.66)
CIE-LCHlch(51.78, 65.98, 290.86°)
OKLaboklab(59.29% -0.0066 -0.1768)
OKLCHoklch(59.29% 0.177 267.9)
XYZxyz(23.9168, 19.9511, 77.4381)
Luminance0.1995 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174E6 #E6C351
analogous
#51BEE6 #5174E6 #7851E6
triadic
#5174E6 #E65174 #74E651
tetradic
#5174E6 #E651BE #E6C351 #51E678
square
#5174E6 #E651BE #E6C351 #51E678
split-complementary
#5174E6 #E67851 #BEE651
monochromatic
#1839A5 #1F4BDA #5174E6 #879FEE #BCC9F5

Accessibility & contrast

On white

4.21
#5174E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#5174E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174E6
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174E6#FFFFFF#000000##000000
##5174E61.004.214.994.99
#FFFFFF4.211.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3483EA
Deuteranopia (green-blind)
#0075E4
Tritanopia (blue-blind)
#008FA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5174e6;
/* rgb */ color: rgb(81, 116, 230);
/* oklch */ color: oklch(59.3% 0.177 267.9);
Tailwind
colors: {
  custom: {
    50: '#909bef',
    500: '#5174e6',
    950: '#000000',
  },
}
SCSS
$custom: #5174e6;
$custom-light: #909bef;
$custom-dark: #000000;
JSON
{
  "hex": "#5174e6",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 230
  },
  "hsl": {
    "h": 225.906,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.59288,
    "c": 0.1769,
    "h": 267.9
  },
  "luminance": 0.19953
}

Semantic roles & 50–950 ramp

primary
#5174E6
secondary
#E5D8AD
accent
#A80ED7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5174E6

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

Preview Lab → · Contrast checker → · Palette generator →

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