#5174DA#5174DA

#5174DA is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.5% C 0.161 H 267.1°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#5174DA
RGBrgb(81, 116, 218)
HSLhsl(225, 65%, 59%)
HSVhsv(225, 63%, 85%)
CMYKcmyk(62.8%, 46.8%, 0%, 14.5%)
CIE-LABlab(51.04, 19.38, -56.10)
CIE-LCHlch(51.04, 59.35, 289.06°)
OKLaboklab(58.48% -0.0081 -0.1604)
OKLCHoklch(58.48% 0.161 267.1)
XYZxyz(22.2893, 19.3001, 68.8667)
Luminance0.1930 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174DA #DAB751
analogous
#51B8DA #5174DA #7251DA
triadic
#5174DA #DA5174 #74DA51
tetradic
#5174DA #DA51B8 #DAB751 #51DA72
square
#5174DA #DA51B8 #DAB751 #51DA72
split-complementary
#5174DA #DA7251 #B8DA51
monochromatic
#1F3C92 #2A51C4 #5174DA #839CE5 #B6C5EF

Accessibility & contrast

On white

4.32
#5174DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5174DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174DA
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174DA#FFFFFF#000000##000000
##5174DA1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4180DE
Deuteranopia (green-blind)
#2774D8
Tritanopia (blue-blind)
#008B9C
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5174da;
/* rgb */ color: rgb(81, 116, 218);
/* oklch */ color: oklch(58.5% 0.161 267.1);
Tailwind
colors: {
  custom: {
    50: '#8e9be6',
    500: '#5174da',
    950: '#000000',
  },
}
SCSS
$custom: #5174da;
$custom-light: #8e9be6;
$custom-dark: #000000;
JSON
{
  "hex": "#5174da",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 218
  },
  "hsl": {
    "h": 224.672,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58481,
    "c": 0.16062,
    "h": 267.1
  },
  "luminance": 0.19302
}

Semantic roles & 50–950 ramp

primary
#5174DA
secondary
#DED1A8
accent
#BD40E8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5174DA

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

Preview Lab → · Contrast checker → · Palette generator →

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