#5175D5#5175D5

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

Color values

HEX#5175D5
RGBrgb(81, 117, 213)
HSLhsl(224, 61%, 58%)
HSVhsv(224, 62%, 84%)
CMYKcmyk(62%, 45.1%, 0%, 16.5%)
CIE-LABlab(51.01, 17.06, -53.31)
CIE-LCHlch(51.01, 55.98, 287.74°)
OKLaboklab(58.36% -0.0098 -0.1522)
OKLCHoklch(58.36% 0.153 266.3)
XYZxyz(21.7607, 19.2741, 65.5114)
Luminance0.1928 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175D5 #D5B151
analogous
#51B7D5 #5175D5 #6F51D5
triadic
#5175D5 #D55175 #75D551
tetradic
#5175D5 #D551B7 #D5B151 #51D56F
square
#5175D5 #D551B7 #D5B151 #51D56F
split-complementary
#5175D5 #D56F51 #B7D551
monochromatic
#213E8A #2D54BC #5175D5 #829CE1 #B4C3ED

Accessibility & contrast

On white

4.33
#5175D5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#5175D5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175D5
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175D5#FFFFFF#000000##000000
##5175D51.004.334.864.86
#FFFFFF4.331.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#4780D9
Deuteranopia (green-blind)
#3274D3
Tritanopia (blue-blind)
#008B9B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5175d5;
/* rgb */ color: rgb(81, 117, 213);
/* oklch */ color: oklch(58.4% 0.153 266.3);
Tailwind
colors: {
  custom: {
    50: '#8e9ce2',
    500: '#5175d5',
    950: '#000000',
  },
}
SCSS
$custom: #5175d5;
$custom-light: #8e9ce2;
$custom-dark: #000000;
JSON
{
  "hex": "#5175d5",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 213
  },
  "hsl": {
    "h": 223.636,
    "s": 61.111,
    "l": 57.647
  },
  "oklch": {
    "l": 0.58362,
    "c": 0.15255,
    "h": 266.3
  },
  "luminance": 0.19276
}

Semantic roles & 50–950 ramp

primary
#5175D5
secondary
#DBCDA6
accent
#B844E4
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5175D5

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

Preview Lab → · Contrast checker → · Palette generator →

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