#5174D2#5174D2

#5174D2 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.0% C 0.150 H 266.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5174D2
RGBrgb(81, 116, 210)
HSLhsl(224, 59%, 57%)
HSVhsv(224, 61%, 82%)
CMYKcmyk(61.4%, 44.8%, 0%, 17.6%)
CIE-LABlab(50.56, 16.65, -52.33)
CIE-LCHlch(50.56, 54.91, 287.65°)
OKLaboklab(57.96% -0.0093 -0.1493)
OKLCHoklch(57.96% 0.15 266.4)
XYZxyz(21.2676, 18.8914, 63.4859)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5174D2 #D2AF51
analogous
#51B5D2 #5174D2 #6F51D2
triadic
#5174D2 #D25174 #74D251
tetradic
#5174D2 #D251B5 #D2AF51 #51D26F
square
#5174D2 #D251B5 #D2AF51 #51D26F
split-complementary
#5174D2 #D26F51 #B5D251
monochromatic
#233E86 #2F54B7 #5174D2 #829BDF #B2C2EB

Accessibility & contrast

On white

4.39
#5174D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5174D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5174D2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5174D2#FFFFFF#000000##000000
##5174D21.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#487FD6
Deuteranopia (green-blind)
#3373D0
Tritanopia (blue-blind)
#008999
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5174d2;
/* rgb */ color: rgb(81, 116, 210);
/* oklch */ color: oklch(58.0% 0.150 266.4);
Tailwind
colors: {
  custom: {
    50: '#8d9be0',
    500: '#5174d2',
    950: '#000000',
  },
}
SCSS
$custom: #5174d2;
$custom-light: #8d9be0;
$custom-dark: #000000;
JSON
{
  "hex": "#5174d2",
  "rgb": {
    "r": 81,
    "g": 116,
    "b": 210
  },
  "hsl": {
    "h": 223.721,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.57963,
    "c": 0.14962,
    "h": 266.4
  },
  "luminance": 0.18893
}

Semantic roles & 50–950 ramp

primary
#5174D2
secondary
#DACBA5
accent
#B846E2
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5174D2

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

Preview Lab → · Contrast checker → · Palette generator →

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