#5172CA#5172CA

#5172CA is a mid, vivid blue. Relative luminance 0.180; OKLCH L 57.0% C 0.141 H 266.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5172CA
RGBrgb(81, 114, 202)
HSLhsl(224, 53%, 55%)
HSVhsv(224, 60%, 79%)
CMYKcmyk(59.9%, 43.6%, 0%, 20.8%)
CIE-LABlab(49.55, 15.18, -49.38)
CIE-LCHlch(49.55, 51.66, 287.09°)
OKLaboklab(57.04% -0.0086 -0.1407)
OKLCHoklch(57.04% 0.141 266.5)
XYZxyz(20.0677, 18.0465, 58.2915)
Luminance0.1805 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172CA #CAA951
analogous
#51AFCA #5172CA #6C51CA
triadic
#5172CA #CA5172 #72CA51
tetradic
#5172CA #CA51AF #CAA951 #51CA6C
square
#5172CA #CA51AF #CAA951 #51CA6C
split-complementary
#5172CA #CA6C51 #AFCA51
monochromatic
#253D7B #3454AA #5172CA #8098D8 #AFBEE7

Accessibility & contrast

On white

4.56
#5172CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#5172CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172CA
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172CA#FFFFFF#000000##000000
##5172CA1.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A7CCD
Deuteranopia (green-blind)
#3971C8
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5172ca;
/* rgb */ color: rgb(81, 114, 202);
/* oklch */ color: oklch(57.0% 0.141 266.5);
Tailwind
colors: {
  custom: {
    50: '#8c9ada',
    500: '#5172ca',
    950: '#000000',
  },
}
SCSS
$custom: #5172ca;
$custom-light: #8c9ada;
$custom-dark: #000000;
JSON
{
  "hex": "#5172ca",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 202
  },
  "hsl": {
    "h": 223.636,
    "s": 53.304,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57041,
    "c": 0.14095,
    "h": 266.5
  },
  "luminance": 0.18048
}

Semantic roles & 50–950 ramp

primary
#5172CA
secondary
#D5C7A2
accent
#B54BDD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5172CA

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

Preview Lab → · Contrast checker → · Palette generator →

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