#5173DB#5173DB

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

Color values

HEX#5173DB
RGBrgb(81, 115, 219)
HSLhsl(225, 66%, 59%)
HSVhsv(225, 63%, 86%)
CMYKcmyk(63%, 47.5%, 0%, 14.1%)
CIE-LABlab(50.83, 20.35, -56.99)
CIE-LCHlch(50.83, 60.52, 289.65°)
OKLaboklab(58.34% -0.007 -0.1631)
OKLCHoklch(58.34% 0.163 267.5)
XYZxyz(22.3059, 19.1233, 69.5198)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173DB #DBB951
analogous
#51B8DB #5173DB #7451DB
triadic
#5173DB #DB5173 #73DB51
tetradic
#5173DB #DB51B8 #DBB951 #51DB74
square
#5173DB #DB51B8 #DBB951 #51DB74
split-complementary
#5173DB #DB7451 #B8DB51
monochromatic
#1E3B93 #2950C6 #5173DB #849CE5 #B6C5F0

Accessibility & contrast

On white

4.35
#5173DB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#5173DB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173DB
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173DB#FFFFFF#000000##000000
##5173DB1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3E80DF
Deuteranopia (green-blind)
#2273D9
Tritanopia (blue-blind)
#008B9C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5173db;
/* rgb */ color: rgb(81, 115, 219);
/* oklch */ color: oklch(58.3% 0.163 267.5);
Tailwind
colors: {
  custom: {
    50: '#8f9ae7',
    500: '#5173db',
    950: '#000000',
  },
}
SCSS
$custom: #5173db;
$custom-light: #8f9ae7;
$custom-dark: #000000;
JSON
{
  "hex": "#5173db",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 219
  },
  "hsl": {
    "h": 225.217,
    "s": 65.714,
    "l": 58.824
  },
  "oklch": {
    "l": 0.58344,
    "c": 0.16322,
    "h": 267.5
  },
  "luminance": 0.19125
}

Semantic roles & 50–950 ramp

primary
#5173DB
secondary
#DFD2A9
accent
#BF3FE9
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #5173DB

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

Preview Lab → · Contrast checker → · Palette generator →

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