#5175BE#5175BE

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

Color values

HEX#5175BE
RGBrgb(81, 117, 190)
HSLhsl(220, 46%, 53%)
HSVhsv(220, 57%, 75%)
CMYKcmyk(57.4%, 38.4%, 0%, 25.5%)
CIE-LABlab(49.72, 9.30, -42.22)
CIE-LCHlch(49.72, 43.23, 282.42°)
OKLaboklab(56.96% -0.0142 -0.1197)
OKLCHoklch(56.96% 0.121 263.2)
XYZxyz(19.0457, 18.1881, 51.2122)
Luminance0.1819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5175BE #BE9A51
analogous
#51ACBE #5175BE #6351BE
triadic
#5175BE #BE5175 #75BE51
tetradic
#5175BE #BE51AC #BE9A51 #51BE63
square
#5175BE #BE51AC #BE9A51 #51BE63
split-complementary
#5175BE #BE6351 #ACBE51
monochromatic
#283F6C #395999 #5175BE #7E98CF #AABCDF

Accessibility & contrast

On white

4.53
#5175BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#5175BE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5175BE
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5175BE#FFFFFF#000000##000000
##5175BE1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5175be;
/* rgb */ color: rgb(81, 117, 190);
/* oklch */ color: oklch(57.0% 0.121 263.2);
Tailwind
colors: {
  custom: {
    50: '#8a9cd2',
    500: '#5175be',
    950: '#000000',
  },
}
SCSS
$custom: #5175be;
$custom-light: #8a9cd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5175be",
  "rgb": {
    "r": 81,
    "g": 117,
    "b": 190
  },
  "hsl": {
    "h": 220.183,
    "s": 45.607,
    "l": 53.137
  },
  "oklch": {
    "l": 0.56958,
    "c": 0.12054,
    "h": 263.2
  },
  "luminance": 0.1819
}

Semantic roles & 50–950 ramp

primary
#5175BE
secondary
#CDBD9E
accent
#AA53D5
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5175BE

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

Preview Lab → · Contrast checker → · Palette generator →

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