#5172CB#5172CB

#5172CB is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.1% C 0.142 H 266.6°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5172CB
RGBrgb(81, 114, 203)
HSLhsl(224, 54%, 56%)
HSVhsv(224, 60%, 80%)
CMYKcmyk(60.1%, 43.8%, 0%, 20.4%)
CIE-LABlab(49.61, 15.51, -49.86)
CIE-LCHlch(49.61, 52.21, 287.29°)
OKLaboklab(57.1% -0.0084 -0.1421)
OKLCHoklch(57.1% 0.142 266.6)
XYZxyz(20.1865, 18.0941, 58.9171)
Luminance0.1810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172CB #CBAA51
analogous
#51AFCB #5172CB #6D51CB
triadic
#5172CB #CB5172 #72CB51
tetradic
#5172CB #CB51AF #CBAA51 #51CB6D
square
#5172CB #CB51AF #CBAA51 #51CB6D
split-complementary
#5172CB #CB6D51 #AFCB51
monochromatic
#253D7C #3354AC #5172CB #8098D9 #AFBEE7

Accessibility & contrast

On white

4.55
#5172CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#5172CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172CB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172CB#FFFFFF#000000##000000
##5172CB1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#497CCE
Deuteranopia (green-blind)
#3871C9
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5172cb;
/* rgb */ color: rgb(81, 114, 203);
/* oklch */ color: oklch(57.1% 0.142 266.6);
Tailwind
colors: {
  custom: {
    50: '#8c9adb',
    500: '#5172cb',
    950: '#000000',
  },
}
SCSS
$custom: #5172cb;
$custom-light: #8c9adb;
$custom-dark: #000000;
JSON
{
  "hex": "#5172cb",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 203
  },
  "hsl": {
    "h": 223.77,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.57103,
    "c": 0.14235,
    "h": 266.6
  },
  "luminance": 0.18096
}

Semantic roles & 50–950 ramp

primary
#5172CB
secondary
#D5C8A3
accent
#B64ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5172CB

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

Preview Lab → · Contrast checker → · Palette generator →

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