#5179BD#5179BD

#5179BD is a mid, moderate blue. Relative luminance 0.191; OKLCH L 57.8% C 0.115 H 260.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#5179BD
RGBrgb(81, 121, 189)
HSLhsl(218, 45%, 53%)
HSVhsv(218, 57%, 74%)
CMYKcmyk(57.1%, 36%, 0%, 25.9%)
CIE-LABlab(50.80, 6.52, -39.94)
CIE-LCHlch(50.80, 40.47, 279.28°)
OKLaboklab(57.78% -0.019 -0.113)
OKLCHoklch(57.78% 0.115 260.5)
XYZxyz(19.4128, 19.0966, 50.7973)
Luminance0.1910 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5179BD #BD9551
analogous
#51AFBD #5179BD #5F51BD
triadic
#5179BD #BD5179 #79BD51
tetradic
#5179BD #BD51AF #BD9551 #51BD5F
square
#5179BD #BD51AF #BD9551 #51BD5F
split-complementary
#5179BD #BD5F51 #AFBD51
monochromatic
#29416B #395C97 #5179BD #7D9BCE #AABDDF

Accessibility & contrast

On white

4.36
#5179BD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#5179BD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5179BD
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5179BD#FFFFFF#000000##000000
##5179BD1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D7EC0
Deuteranopia (green-blind)
#4F74BC
Tritanopia (blue-blind)
#008892
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5179bd;
/* rgb */ color: rgb(81, 121, 189);
/* oklch */ color: oklch(57.8% 0.115 260.5);
Tailwind
colors: {
  custom: {
    50: '#8a9fd1',
    500: '#5179bd',
    950: '#000000',
  },
}
SCSS
$custom: #5179bd;
$custom-light: #8a9fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5179bd",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 189
  },
  "hsl": {
    "h": 217.778,
    "s": 45,
    "l": 52.941
  },
  "oklch": {
    "l": 0.57776,
    "c": 0.11459,
    "h": 260.5
  },
  "luminance": 0.19098
}

Semantic roles & 50–950 ramp

primary
#5179BD
secondary
#CCBB9E
accent
#A553D5
background
#F8F9FC
surface
#F0F2F9
border
#CBCCD2
text
#0C0E14
muted
#7D7E82

Preview Lab

Preview with #5179BD

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

Preview Lab → · Contrast checker → · Palette generator →

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