#5175BC#5175BC

#5175BC is a mid, moderate blue. Relative luminance 0.181; OKLCH L 56.8% C 0.118 H 262.8°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5175BC
RGBrgb(81, 117, 188)
HSLhsl(220, 44%, 53%)
HSVhsv(220, 57%, 74%)
CMYKcmyk(56.9%, 37.8%, 0%, 26.3%)
CIE-LABlab(49.62, 8.63, -41.24)
CIE-LCHlch(49.62, 42.13, 281.82°)
OKLaboklab(56.84% -0.0147 -0.1168)
OKLCHoklch(56.84% 0.118 262.8)
XYZxyz(18.8286, 18.1012, 50.0689)
Luminance0.1810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175BC #BC9851
analogous
#51AABC #5175BC #6251BC
triadic
#5175BC #BC5175 #75BC51
tetradic
#5175BC #BC51AA #BC9851 #51BC62
square
#5175BC #BC51AA #BC9851 #51BC62
split-complementary
#5175BC #BC6251 #AABC51
monochromatic
#293F6A #3A5996 #5175BC #7D98CD #A9BBDE

Accessibility & contrast

On white

4.54
#5175BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#5175BC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175BC
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175BC#FFFFFF#000000##000000
##5175BC1.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#587BBF
Deuteranopia (green-blind)
#4A71BA
Tritanopia (blue-blind)
#00858F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5175bc;
/* rgb */ color: rgb(81, 117, 188);
/* oklch */ color: oklch(56.8% 0.118 262.8);
Tailwind
colors: {
  custom: {
    50: '#8a9cd0',
    500: '#5175bc',
    950: '#000000',
  },
}
SCSS
$custom: #5175bc;
$custom-light: #8a9cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5175bc",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 188
  },
  "hsl": {
    "h": 219.813,
    "s": 44.398,
    "l": 52.745
  },
  "oklch": {
    "l": 0.56842,
    "c": 0.11774,
    "h": 262.8
  },
  "luminance": 0.18103
}

Semantic roles & 50–950 ramp

primary
#5175BC
secondary
#CCBC9D
accent
#A954D4
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5175BC

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

Preview Lab → · Contrast checker → · Palette generator →

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