#5174BC#5174BC

#5174BC is a mid, moderate blue. Relative luminance 0.179; OKLCH L 56.6% C 0.119 H 263.5°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5174BC
RGBrgb(81, 116, 188)
HSLhsl(220, 44%, 53%)
HSVhsv(220, 57%, 74%)
CMYKcmyk(56.9%, 38.3%, 0%, 26.3%)
CIE-LABlab(49.34, 9.25, -41.68)
CIE-LCHlch(49.34, 42.69, 282.51°)
OKLaboklab(56.63% -0.0135 -0.1181)
OKLCHoklch(56.63% 0.119 263.5)
XYZxyz(18.7127, 17.8695, 50.0302)
Luminance0.1787 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174BC #BC9951
analogous
#51A9BC #5174BC #6451BC
triadic
#5174BC #BC5174 #74BC51
tetradic
#5174BC #BC51A9 #BC9951 #51BC64
square
#5174BC #BC51A9 #BC9951 #51BC64
split-complementary
#5174BC #BC6451 #A9BC51
monochromatic
#293E6A #3A5896 #5174BC #7D97CD #A9BBDE

Accessibility & contrast

On white

4.59
#5174BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#5174BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5174BC
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174BC#FFFFFF#000000##FFFFFF
##5174BC1.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#567BBF
Deuteranopia (green-blind)
#4971BA
Tritanopia (blue-blind)
#00848F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5174bc;
/* rgb */ color: rgb(81, 116, 188);
/* oklch */ color: oklch(56.6% 0.119 263.5);
Tailwind
colors: {
  custom: {
    50: '#8a9bd0',
    500: '#5174bc',
    950: '#000000',
  },
}
SCSS
$custom: #5174bc;
$custom-light: #8a9bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5174bc",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 188
  },
  "hsl": {
    "h": 220.374,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56625,
    "c": 0.1189,
    "h": 263.5
  },
  "luminance": 0.17871
}

Semantic roles & 50–950 ramp

primary
#5174BC
secondary
#CCBC9D
accent
#AA54D4
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5174BC

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

Preview Lab → · Contrast checker → · Palette generator →

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