#5175BF#5175BF

#5175BF is a mid, vivid blue. Relative luminance 0.182; OKLCH L 57.0% C 0.122 H 263.4°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5175BF
RGBrgb(81, 117, 191)
HSLhsl(220, 46%, 53%)
HSVhsv(220, 58%, 75%)
CMYKcmyk(57.6%, 38.7%, 0%, 25.1%)
CIE-LABlab(49.78, 9.63, -42.71)
CIE-LCHlch(49.78, 43.78, 282.71°)
OKLaboklab(57.02% -0.014 -0.1211)
OKLCHoklch(57.02% 0.122 263.4)
XYZxyz(19.1554, 18.2319, 51.7898)
Luminance0.1823 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175BF #BF9B51
analogous
#51ACBF #5175BF #6451BF
triadic
#5175BF #BF5175 #75BF51
tetradic
#5175BF #BF51AC #BF9B51 #51BF64
square
#5175BF #BF51AC #BF9B51 #51BF64
split-complementary
#5175BF #BF6451 #ACBF51
monochromatic
#283F6D #39599A #5175BF #7E98CF #AABCE0

Accessibility & contrast

On white

4.52
#5175BF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#5175BF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175BF
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175BF#FFFFFF#000000##000000
##5175BF1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#567CC2
Deuteranopia (green-blind)
#4872BD
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5175bf;
/* rgb */ color: rgb(81, 117, 191);
/* oklch */ color: oklch(57.0% 0.122 263.4);
Tailwind
colors: {
  custom: {
    50: '#8a9cd3',
    500: '#5175bf',
    950: '#000000',
  },
}
SCSS
$custom: #5175bf;
$custom-light: #8a9cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5175bf",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 191
  },
  "hsl": {
    "h": 220.364,
    "s": 46.218,
    "l": 53.333
  },
  "oklch": {
    "l": 0.57016,
    "c": 0.12194,
    "h": 263.4
  },
  "luminance": 0.18233
}

Semantic roles & 50–950 ramp

primary
#5175BF
secondary
#CEBE9E
accent
#AB52D6
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5175BF

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

Preview Lab → · Contrast checker → · Palette generator →

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