#5174E9#5174E9

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

Color values

HEX#5174E9
RGBrgb(81, 116, 233)
HSLhsl(226, 78%, 62%)
HSVhsv(226, 65%, 91%)
CMYKcmyk(65.2%, 50.2%, 0%, 8.6%)
CIE-LABlab(51.97, 24.53, -63.03)
CIE-LCHlch(51.97, 67.64, 291.27°)
OKLaboklab(59.5% -0.0063 -0.1808)
OKLCHoklch(59.5% 0.181 268)
XYZxyz(24.3417, 20.1210, 79.6759)
Luminance0.2012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174E9 #E9C651
analogous
#51C0E9 #5174E9 #7A51E9
triadic
#5174E9 #E95174 #74E951
tetradic
#5174E9 #E951C0 #E9C651 #51E97A
square
#5174E9 #E951C0 #E9C651 #51E97A
split-complementary
#5174E9 #E97A51 #C0E951
monochromatic
#1638AA #1C4AE0 #5174E9 #879FF0 #BECBF7

Accessibility & contrast

On white

4.18
#5174E9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.02
#5174E9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174E9
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174E9#FFFFFF#000000##000000
##5174E91.004.185.025.02
#FFFFFF4.181.0021.0021.00
#0000005.0221.001.001.00
##0000005.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3083ED
Deuteranopia (green-blind)
#0075E7
Tritanopia (blue-blind)
#008FA4
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5174e9;
/* rgb */ color: rgb(81, 116, 233);
/* oklch */ color: oklch(59.5% 0.181 268.0);
Tailwind
colors: {
  custom: {
    50: '#919bf1',
    500: '#5174e9',
    950: '#000000',
  },
}
SCSS
$custom: #5174e9;
$custom-light: #919bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#5174e9",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 233
  },
  "hsl": {
    "h": 226.184,
    "s": 77.551,
    "l": 61.569
  },
  "oklch": {
    "l": 0.59495,
    "c": 0.18093,
    "h": 268
  },
  "luminance": 0.20123
}

Semantic roles & 50–950 ramp

primary
#5174E9
secondary
#E7DAAF
accent
#AA0CDA
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5174E9

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

Preview Lab → · Contrast checker → · Palette generator →

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