#5175D2#5175D2

#5175D2 is a mid, vivid blue. Relative luminance 0.191; OKLCH L 58.2% C 0.148 H 266.0°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5175D2
RGBrgb(81, 117, 210)
HSLhsl(223, 59%, 57%)
HSVhsv(223, 61%, 82%)
CMYKcmyk(61.4%, 44.3%, 0%, 17.6%)
CIE-LABlab(50.83, 16.04, -51.89)
CIE-LCHlch(50.83, 54.31, 287.17°)
OKLaboklab(58.17% -0.0103 -0.148)
OKLCHoklch(58.17% 0.148 266)
XYZxyz(21.3835, 19.1232, 63.5245)
Luminance0.1913 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175D2 #D2AE51
analogous
#51B5D2 #5175D2 #6E51D2
triadic
#5175D2 #D25175 #75D251
tetradic
#5175D2 #D251B5 #D2AE51 #51D26E
square
#5175D2 #D251B5 #D2AE51 #51D26E
split-complementary
#5175D2 #D26E51 #B5D251
monochromatic
#233E86 #2F55B7 #5175D2 #829CDF #B2C2EB

Accessibility & contrast

On white

4.35
#5175D2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#5175D2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175D2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175D2#FFFFFF#000000##000000
##5175D21.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)
#4A7FD6
Deuteranopia (green-blind)
#3674D0
Tritanopia (blue-blind)
#008A99
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5175d2;
/* rgb */ color: rgb(81, 117, 210);
/* oklch */ color: oklch(58.2% 0.148 266.0);
Tailwind
colors: {
  custom: {
    50: '#8d9ce0',
    500: '#5175d2',
    950: '#000000',
  },
}
SCSS
$custom: #5175d2;
$custom-light: #8d9ce0;
$custom-dark: #000000;
JSON
{
  "hex": "#5175d2",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 210
  },
  "hsl": {
    "h": 223.256,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.58171,
    "c": 0.14841,
    "h": 266
  },
  "luminance": 0.19125
}

Semantic roles & 50–950 ramp

primary
#5175D2
secondary
#DACBA5
accent
#B646E2
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5175D2

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

Preview Lab → · Contrast checker → · Palette generator →

#5175D2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva