#5173F2#5173F2

#5173F2 is a mid, vivid blue. Relative luminance 0.204; OKLCH L 59.9% C 0.194 H 268.6°. Best body text is #000000 at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#5173F2
RGBrgb(81, 115, 242)
HSLhsl(227, 86%, 63%)
HSVhsv(227, 67%, 95%)
CMYKcmyk(66.5%, 52.5%, 0%, 5.1%)
CIE-LABlab(52.31, 28.24, -67.52)
CIE-LCHlch(52.31, 73.19, 292.70°)
OKLaboklab(59.94% -0.0047 -0.194)
OKLCHoklch(59.94% 0.194 268.6)
XYZxyz(25.5456, 20.4192, 86.5822)
Luminance0.2042 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173F2 #F2D051
analogous
#51C3F2 #5173F2 #7F51F2
triadic
#5173F2 #F25173 #73F251
tetradic
#5173F2 #F251C3 #F2D051 #51F27F
square
#5173F2 #F251C3 #F2D051 #51F27F
split-complementary
#5173F2 #F27F51 #C3F251
monochromatic
#0E32BB #1845EE #5173F2 #8AA1F6 #C3CFFB

Accessibility & contrast

On white

4.13
#5173F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.08
#5173F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173F2
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173F2#FFFFFF#000000##000000
##5173F21.004.135.085.08
#FFFFFF4.131.0021.0021.00
#0000005.0821.001.001.00
##0000005.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#1B84F6
Deuteranopia (green-blind)
#0076EF
Tritanopia (blue-blind)
#0091A7
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5173f2;
/* rgb */ color: rgb(81, 115, 242);
/* oklch */ color: oklch(59.9% 0.194 268.6);
Tailwind
colors: {
  custom: {
    50: '#939af7',
    500: '#5173f2',
    950: '#000000',
  },
}
SCSS
$custom: #5173f2;
$custom-light: #939af7;
$custom-dark: #000000;
JSON
{
  "hex": "#5173f2",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 242
  },
  "hsl": {
    "h": 227.329,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59936,
    "c": 0.1941,
    "h": 268.6
  },
  "luminance": 0.20422
}

Semantic roles & 50–950 ramp

primary
#5173F2
secondary
#ECE0B3
accent
#B303E3
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5173F2

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

Preview Lab → · Contrast checker → · Palette generator →

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