#5175B3#5175B3

#5175B3 is a mid, moderate blue. Relative luminance 0.177; OKLCH L 56.3% C 0.105 H 260.7°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5175B3
RGBrgb(81, 117, 179)
HSLhsl(218, 39%, 51%)
HSVhsv(218, 55%, 70%)
CMYKcmyk(54.7%, 34.6%, 0%, 29.8%)
CIE-LABlab(49.16, 5.67, -36.76)
CIE-LCHlch(49.16, 37.19, 278.77°)
OKLaboklab(56.34% -0.0169 -0.1038)
OKLCHoklch(56.34% 0.105 260.7)
XYZxyz(17.8885, 17.7252, 45.1177)
Luminance0.1773 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175B3 #B38F51
analogous
#51A6B3 #5175B3 #5E51B3
triadic
#5175B3 #B35175 #75B351
tetradic
#5175B3 #B351A6 #B38F51 #51B35E
square
#5175B3 #B351A6 #B38F51 #51B35E
split-complementary
#5175B3 #B35E51 #A6B351
monochromatic
#2A3E60 #3C598A #5175B3 #7C97C6 #A6B9D8

Accessibility & contrast

On white

4.62
#5175B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#5175B3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5175B3
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175B3#FFFFFF#000000##FFFFFF
##5175B31.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C7AB6
Deuteranopia (green-blind)
#5071B2
Tritanopia (blue-blind)
#18838C
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5175b3;
/* rgb */ color: rgb(81, 117, 179);
/* oklch */ color: oklch(56.3% 0.105 260.7);
Tailwind
colors: {
  custom: {
    50: '#899cca',
    500: '#5175b3',
    950: '#000000',
  },
}
SCSS
$custom: #5175b3;
$custom-light: #899cca;
$custom-dark: #000000;
JSON
{
  "hex": "#5175b3",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 179
  },
  "hsl": {
    "h": 217.959,
    "s": 39.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.56337,
    "c": 0.10513,
    "h": 260.7
  },
  "luminance": 0.17727
}

Semantic roles & 50–950 ramp

primary
#5175B3
secondary
#C6B69A
accent
#A459CF
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E13
muted
#7D7E82

Preview Lab

Preview with #5175B3

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

Preview Lab → · Contrast checker → · Palette generator →

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