#5173DA#5173DA

#5173DA is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.3% C 0.162 H 267.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5173DA
RGBrgb(81, 115, 218)
HSLhsl(225, 65%, 59%)
HSVhsv(225, 63%, 85%)
CMYKcmyk(62.8%, 47.2%, 0%, 14.5%)
CIE-LABlab(50.77, 20.00, -56.52)
CIE-LCHlch(50.77, 59.96, 289.49°)
OKLaboklab(58.28% -0.0071 -0.1617)
OKLCHoklch(58.28% 0.162 267.5)
XYZxyz(22.1746, 19.0708, 68.8285)
Luminance0.1907 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173DA #DAB851
analogous
#51B8DA #5173DA #7351DA
triadic
#5173DA #DA5173 #73DA51
tetradic
#5173DA #DA51B8 #DAB851 #51DA73
square
#5173DA #DA51B8 #DAB851 #51DA73
split-complementary
#5173DA #DA7351 #B8DA51
monochromatic
#1F3B92 #2A50C4 #5173DA #839CE5 #B6C4EF

Accessibility & contrast

On white

4.36
#5173DA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#5173DA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173DA
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173DA#FFFFFF#000000##000000
##5173DA1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7FDE
Deuteranopia (green-blind)
#2473D8
Tritanopia (blue-blind)
#008B9C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5173da;
/* rgb */ color: rgb(81, 115, 218);
/* oklch */ color: oklch(58.3% 0.162 267.5);
Tailwind
colors: {
  custom: {
    50: '#8e9ae6',
    500: '#5173da',
    950: '#000000',
  },
}
SCSS
$custom: #5173da;
$custom-light: #8e9ae6;
$custom-dark: #000000;
JSON
{
  "hex": "#5173da",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 218
  },
  "hsl": {
    "h": 225.109,
    "s": 64.929,
    "l": 58.627
  },
  "oklch": {
    "l": 0.58278,
    "c": 0.16185,
    "h": 267.5
  },
  "luminance": 0.19073
}

Semantic roles & 50–950 ramp

primary
#5173DA
secondary
#DED1A8
accent
#BE40E8
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5173DA

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

Preview Lab → · Contrast checker → · Palette generator →

#5173DA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva