#5175D6#5175D6

#5175D6 is a mid, vivid blue. Relative luminance 0.193; OKLCH L 58.4% C 0.154 H 266.4°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5175D6
RGBrgb(81, 117, 214)
HSLhsl(224, 62%, 58%)
HSVhsv(224, 62%, 84%)
CMYKcmyk(62.1%, 45.3%, 0%, 16.1%)
CIE-LABlab(51.07, 17.40, -53.79)
CIE-LCHlch(51.07, 56.53, 287.93°)
OKLaboklab(58.43% -0.0097 -0.1536)
OKLCHoklch(58.43% 0.154 266.4)
XYZxyz(21.8881, 19.3250, 66.1819)
Luminance0.1933 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175D6 #D6B251
analogous
#51B8D6 #5175D6 #6F51D6
triadic
#5175D6 #D65175 #75D651
tetradic
#5175D6 #D651B8 #D6B251 #51D66F
square
#5175D6 #D651B8 #D6B251 #51D66F
split-complementary
#5175D6 #D66F51 #B8D651
monochromatic
#213E8C #2D54BD #5175D6 #839CE2 #B4C4ED

Accessibility & contrast

On white

4.32
#5175D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5175D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175D6
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175D6#FFFFFF#000000##000000
##5175D61.004.324.874.87
#FFFFFF4.321.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4680DA
Deuteranopia (green-blind)
#3074D4
Tritanopia (blue-blind)
#008B9B
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5175d6;
/* rgb */ color: rgb(81, 117, 214);
/* oklch */ color: oklch(58.4% 0.154 266.4);
Tailwind
colors: {
  custom: {
    50: '#8e9ce3',
    500: '#5175d6',
    950: '#000000',
  },
}
SCSS
$custom: #5175d6;
$custom-light: #8e9ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#5175d6",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 214
  },
  "hsl": {
    "h": 223.759,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.58426,
    "c": 0.15392,
    "h": 266.4
  },
  "luminance": 0.19327
}

Semantic roles & 50–950 ramp

primary
#5175D6
secondary
#DCCEA7
accent
#B943E5
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0D0E15
muted
#7E7E84

Preview Lab

Preview with #5175D6

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

Preview Lab → · Contrast checker → · Palette generator →

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