#5175BB#5175BB

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

Color values

HEX#5175BB
RGBrgb(81, 117, 187)
HSLhsl(220, 44%, 53%)
HSVhsv(220, 57%, 73%)
CMYKcmyk(56.7%, 37.4%, 0%, 26.7%)
CIE-LABlab(49.57, 8.30, -40.74)
CIE-LCHlch(49.57, 41.58, 281.52°)
OKLaboklab(56.79% -0.0149 -0.1154)
OKLCHoklch(56.79% 0.116 262.6)
XYZxyz(18.7212, 18.0583, 49.5031)
Luminance0.1806 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175BB #BB9751
analogous
#51AABB #5175BB #6251BB
triadic
#5175BB #BB5175 #75BB51
tetradic
#5175BB #BB51AA #BB9751 #51BB62
square
#5175BB #BB51AA #BB9751 #51BB62
split-complementary
#5175BB #BB6251 #AABB51
monochromatic
#293F69 #3A5995 #5175BB #7D98CC #A9BBDD

Accessibility & contrast

On white

4.55
#5175BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#5175BB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175BB
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175BB#FFFFFF#000000##000000
##5175BB1.004.554.614.61
#FFFFFF4.551.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#587BBE
Deuteranopia (green-blind)
#4B71BA
Tritanopia (blue-blind)
#03848F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5175bb;
/* rgb */ color: rgb(81, 117, 187);
/* oklch */ color: oklch(56.8% 0.116 262.6);
Tailwind
colors: {
  custom: {
    50: '#8a9cd0',
    500: '#5175bb',
    950: '#000000',
  },
}
SCSS
$custom: #5175bb;
$custom-light: #8a9cd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5175bb",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 187
  },
  "hsl": {
    "h": 219.623,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56785,
    "c": 0.11633,
    "h": 262.6
  },
  "luminance": 0.1806
}

Semantic roles & 50–950 ramp

primary
#5175BB
secondary
#CBBB9D
accent
#A854D4
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5175BB

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

Preview Lab → · Contrast checker → · Palette generator →

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