#5174E4#5174E4

#5174E4 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.2% C 0.174 H 267.7°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5174E4
RGBrgb(81, 116, 228)
HSLhsl(226, 73%, 61%)
HSVhsv(226, 64%, 89%)
CMYKcmyk(64.5%, 49.1%, 0%, 10.6%)
CIE-LABlab(51.66, 22.81, -60.74)
CIE-LCHlch(51.66, 64.88, 290.59°)
OKLaboklab(59.15% -0.0068 -0.1741)
OKLCHoklch(59.15% 0.174 267.7)
XYZxyz(23.6375, 19.8394, 75.9674)
Luminance0.1984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174E4 #E4C151
analogous
#51BEE4 #5174E4 #7751E4
triadic
#5174E4 #E45174 #74E451
tetradic
#5174E4 #E451BE #E4C151 #51E477
square
#5174E4 #E451BE #E4C151 #51E477
split-complementary
#5174E4 #E47751 #BEE451
monochromatic
#193AA2 #214CD7 #5174E4 #869EEC #BBC9F4

Accessibility & contrast

On white

4.23
#5174E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5174E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174E4
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174E4#FFFFFF#000000##000000
##5174E41.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3682E8
Deuteranopia (green-blind)
#0C75E2
Tritanopia (blue-blind)
#008EA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5174e4;
/* rgb */ color: rgb(81, 116, 228);
/* oklch */ color: oklch(59.2% 0.174 267.7);
Tailwind
colors: {
  custom: {
    50: '#909bed',
    500: '#5174e4',
    950: '#000000',
  },
}
SCSS
$custom: #5174e4;
$custom-light: #909bed;
$custom-dark: #000000;
JSON
{
  "hex": "#5174e4",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 228
  },
  "hsl": {
    "h": 225.714,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.59151,
    "c": 0.1742,
    "h": 267.7
  },
  "luminance": 0.19842
}

Semantic roles & 50–950 ramp

primary
#5174E4
secondary
#E4D7AC
accent
#A610D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5174E4

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

Preview Lab → · Contrast checker → · Palette generator →

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