#5172F2#5172F2

#5172F2 is a mid, vivid blue. Relative luminance 0.202; OKLCH L 59.7% C 0.195 H 268.9°. Best body text is #000000 at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#5172F2
RGBrgb(81, 114, 242)
HSLhsl(228, 86%, 63%)
HSVhsv(228, 67%, 95%)
CMYKcmyk(66.5%, 52.9%, 0%, 5.1%)
CIE-LABlab(52.05, 28.86, -67.93)
CIE-LCHlch(52.05, 73.81, 293.02°)
OKLaboklab(59.75% -0.0038 -0.1953)
OKLCHoklch(59.75% 0.195 268.9)
XYZxyz(25.4322, 20.1923, 86.5444)
Luminance0.2019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172F2 #F2D151
analogous
#51C2F2 #5172F2 #8051F2
triadic
#5172F2 #F25172 #72F251
tetradic
#5172F2 #F251C2 #F2D151 #51F280
square
#5172F2 #F251C2 #F2D151 #51F280
split-complementary
#5172F2 #F28051 #C2F251
monochromatic
#0E31BB #1844EE #5172F2 #8AA0F6 #C3CEFB

Accessibility & contrast

On white

4.17
#5172F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.04
#5172F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172F2
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172F2#FFFFFF#000000##000000
##5172F21.004.175.045.04
#FFFFFF4.171.0021.0021.00
#0000005.0421.001.001.00
##0000005.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#1584F6
Deuteranopia (green-blind)
#0075EF
Tritanopia (blue-blind)
#0091A7
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5172f2;
/* rgb */ color: rgb(81, 114, 242);
/* oklch */ color: oklch(59.7% 0.195 268.9);
Tailwind
colors: {
  custom: {
    50: '#939af7',
    500: '#5172f2',
    950: '#000000',
  },
}
SCSS
$custom: #5172f2;
$custom-light: #939af7;
$custom-dark: #000000;
JSON
{
  "hex": "#5172f2",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 242
  },
  "hsl": {
    "h": 227.702,
    "s": 86.096,
    "l": 63.333
  },
  "oklch": {
    "l": 0.59745,
    "c": 0.1953,
    "h": 268.9
  },
  "luminance": 0.20195
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5172F2

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

Preview Lab → · Contrast checker → · Palette generator →

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