#5174BE#5174BE

#5174BE is a mid, vivid blue. Relative luminance 0.180; OKLCH L 56.7% C 0.122 H 263.8°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5174BE
RGBrgb(81, 116, 190)
HSLhsl(221, 46%, 53%)
HSVhsv(221, 57%, 75%)
CMYKcmyk(57.4%, 38.9%, 0%, 25.5%)
CIE-LABlab(49.44, 9.91, -42.67)
CIE-LCHlch(49.44, 43.80, 283.08°)
OKLaboklab(56.74% -0.0131 -0.121)
OKLCHoklch(56.74% 0.122 263.8)
XYZxyz(18.9298, 17.9563, 51.1736)
Luminance0.1796 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174BE #BE9B51
analogous
#51AABE #5174BE #6451BE
triadic
#5174BE #BE5174 #74BE51
tetradic
#5174BE #BE51AA #BE9B51 #51BE64
square
#5174BE #BE51AA #BE9B51 #51BE64
split-complementary
#5174BE #BE6451 #AABE51
monochromatic
#283E6C #395899 #5174BE #7E98CF #AABBDF

Accessibility & contrast

On white

4.57
#5174BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#5174BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174BE
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174BE#FFFFFF#000000##000000
##5174BE1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#557BC1
Deuteranopia (green-blind)
#4771BC
Tritanopia (blue-blind)
#008490
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5174be;
/* rgb */ color: rgb(81, 116, 190);
/* oklch */ color: oklch(56.7% 0.122 263.8);
Tailwind
colors: {
  custom: {
    50: '#8a9bd2',
    500: '#5174be',
    950: '#000000',
  },
}
SCSS
$custom: #5174be;
$custom-light: #8a9bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5174be",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 190
  },
  "hsl": {
    "h": 220.734,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56741,
    "c": 0.12172,
    "h": 263.8
  },
  "luminance": 0.17958
}

Semantic roles & 50–950 ramp

primary
#5174BE
secondary
#CDBE9E
accent
#AB53D5
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5174BE

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

Preview Lab → · Contrast checker → · Palette generator →

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