#5170CA#5170CA

#5170CA is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.6% C 0.143 H 267.4°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5170CA
RGBrgb(81, 112, 202)
HSLhsl(225, 53%, 55%)
HSVhsv(225, 60%, 79%)
CMYKcmyk(59.9%, 44.6%, 0%, 20.8%)
CIE-LABlab(49.01, 16.42, -50.25)
CIE-LCHlch(49.01, 52.86, 288.09°)
OKLaboklab(56.62% -0.0065 -0.1433)
OKLCHoklch(56.62% 0.143 267.4)
XYZxyz(19.8446, 17.6003, 58.2171)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5170CA #CAAB51
analogous
#51ACCA #5170CA #6E51CA
triadic
#5170CA #CA5170 #70CA51
tetradic
#5170CA #CA51AC #CAAB51 #51CA6E
square
#5170CA #CA51AC #CAAB51 #51CA6E
split-complementary
#5170CA #CA6E51 #ACCA51
monochromatic
#253B7B #3452AA #5170CA #8097D8 #AFBDE7

Accessibility & contrast

On white

4.65
#5170CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#5170CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5170CA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5170CA#FFFFFF#000000##FFFFFF
##5170CA1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#467ACD
Deuteranopia (green-blind)
#356FC8
Tritanopia (blue-blind)
#008493
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5170ca;
/* rgb */ color: rgb(81, 112, 202);
/* oklch */ color: oklch(56.6% 0.143 267.4);
Tailwind
colors: {
  custom: {
    50: '#8c98db',
    500: '#5170ca',
    950: '#000000',
  },
}
SCSS
$custom: #5170ca;
$custom-light: #8c98db;
$custom-dark: #000000;
JSON
{
  "hex": "#5170ca",
  "rgb": {
    "r": 81,
    "g": 112,
    "b": 202
  },
  "hsl": {
    "h": 224.628,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.56623,
    "c": 0.14342,
    "h": 267.4
  },
  "luminance": 0.17602
}

Semantic roles & 50–950 ramp

primary
#5170CA
secondary
#D5C8A2
accent
#B74BDD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5170CA

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

Preview Lab → · Contrast checker → · Palette generator →

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