#5175BD#5175BD

#5175BD is a mid, moderate blue. Relative luminance 0.181; OKLCH L 56.9% C 0.119 H 263.0°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#5175BD
RGBrgb(81, 117, 189)
HSLhsl(220, 45%, 53%)
HSVhsv(220, 57%, 74%)
CMYKcmyk(57.1%, 38.1%, 0%, 25.9%)
CIE-LABlab(49.67, 8.96, -41.73)
CIE-LCHlch(49.67, 42.68, 282.12°)
OKLaboklab(56.9% -0.0144 -0.1183)
OKLCHoklch(56.9% 0.119 263)
XYZxyz(18.9368, 18.1445, 50.6386)
Luminance0.1815 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175BD #BD9951
analogous
#51ABBD #5175BD #6351BD
triadic
#5175BD #BD5175 #75BD51
tetradic
#5175BD #BD51AB #BD9951 #51BD63
square
#5175BD #BD51AB #BD9951 #51BD63
split-complementary
#5175BD #BD6351 #ABBD51
monochromatic
#293F6B #395997 #5175BD #7D98CE #AABBDF

Accessibility & contrast

On white

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

On black

4.63
#5175BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175BD
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175BD#FFFFFF#000000##000000
##5175BD1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#577BC0
Deuteranopia (green-blind)
#4972BB
Tritanopia (blue-blind)
#008590
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5175bd;
/* rgb */ color: rgb(81, 117, 189);
/* oklch */ color: oklch(56.9% 0.119 263.0);
Tailwind
colors: {
  custom: {
    50: '#8a9cd1',
    500: '#5175bd',
    950: '#000000',
  },
}
SCSS
$custom: #5175bd;
$custom-light: #8a9cd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5175bd",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 189
  },
  "hsl": {
    "h": 220,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.569,
    "c": 0.11914,
    "h": 263
  },
  "luminance": 0.18146
}

Semantic roles & 50–950 ramp

primary
#5175BD
secondary
#CCBD9E
accent
#A953D5
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5175BD

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

Preview Lab → · Contrast checker → · Palette generator →

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