#5171CA#5171CA

#5171CA is a mid, vivid blue. Relative luminance 0.178; OKLCH L 56.8% C 0.142 H 267.0°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#5171CA
RGBrgb(81, 113, 202)
HSLhsl(224, 53%, 55%)
HSVhsv(224, 60%, 79%)
CMYKcmyk(59.9%, 44.1%, 0%, 20.8%)
CIE-LABlab(49.28, 15.80, -49.81)
CIE-LCHlch(49.28, 52.26, 287.60°)
OKLaboklab(56.83% -0.0075 -0.142)
OKLCHoklch(56.83% 0.142 267)
XYZxyz(19.9555, 17.8222, 58.2541)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5171CA #CAAA51
analogous
#51AECA #5171CA #6D51CA
triadic
#5171CA #CA5171 #71CA51
tetradic
#5171CA #CA51AE #CAAA51 #51CA6D
square
#5171CA #CA51AE #CAAA51 #51CA6D
split-complementary
#5171CA #CA6D51 #AECA51
monochromatic
#253C7B #3453AA #5171CA #8097D8 #AFBEE7

Accessibility & contrast

On white

4.60
#5171CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#5171CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5171CA
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5171CA#FFFFFF#000000##FFFFFF
##5171CA1.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#487BCD
Deuteranopia (green-blind)
#3770C8
Tritanopia (blue-blind)
#008594
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5171ca;
/* rgb */ color: rgb(81, 113, 202);
/* oklch */ color: oklch(56.8% 0.142 267.0);
Tailwind
colors: {
  custom: {
    50: '#8c99db',
    500: '#5171ca',
    950: '#000000',
  },
}
SCSS
$custom: #5171ca;
$custom-light: #8c99db;
$custom-dark: #000000;
JSON
{
  "hex": "#5171ca",
  "rgb": {
    "r": 81,
    "g": 113,
    "b": 202
  },
  "hsl": {
    "h": 224.132,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56831,
    "c": 0.14219,
    "h": 267
  },
  "luminance": 0.17824
}

Semantic roles & 50–950 ramp

primary
#5171CA
secondary
#D5C7A2
accent
#B64BDD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5171CA

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

Preview Lab → · Contrast checker → · Palette generator →

#5171CA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva