#5179CB#5179CB

#5179CB is a mid, vivid blue. Relative luminance 0.197; OKLCH L 58.6% C 0.134 H 263.2°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5179CB
RGBrgb(81, 121, 203)
HSLhsl(220, 54%, 56%)
HSVhsv(220, 60%, 80%)
CMYKcmyk(60.1%, 40.4%, 0%, 20.4%)
CIE-LABlab(51.54, 11.20, -46.79)
CIE-LCHlch(51.54, 48.11, 283.46°)
OKLaboklab(58.59% -0.0158 -0.133)
OKLCHoklch(58.59% 0.134 263.2)
XYZxyz(21.0065, 19.7341, 59.1904)
Luminance0.1974 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5179CB #CBA351
analogous
#51B6CB #5179CB #6651CB
triadic
#5179CB #CB5179 #79CB51
tetradic
#5179CB #CB51B6 #CBA351 #51CB66
square
#5179CB #CB51B6 #CBA351 #51CB66
split-complementary
#5179CB #CB6651 #B6CB51
monochromatic
#25427C #335BAC #5179CB #809DD9 #AFC2E7

Accessibility & contrast

On white

4.24
#5179CB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5179CB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5179CB
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5179CB#FFFFFF#000000##000000
##5179CB1.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5581CE
Deuteranopia (green-blind)
#4476C9
Tritanopia (blue-blind)
#008B98
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5179cb;
/* rgb */ color: rgb(81, 121, 203);
/* oklch */ color: oklch(58.6% 0.134 263.2);
Tailwind
colors: {
  custom: {
    50: '#8c9fdb',
    500: '#5179cb',
    950: '#000000',
  },
}
SCSS
$custom: #5179cb;
$custom-light: #8c9fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#5179cb",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 203
  },
  "hsl": {
    "h": 220.328,
    "s": 53.982,
    "l": 55.686
  },
  "oklch": {
    "l": 0.58586,
    "c": 0.13395,
    "h": 263.2
  },
  "luminance": 0.19736
}

Semantic roles & 50–950 ramp

primary
#5179CB
secondary
#D5C5A3
accent
#AD4ADD
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5179CB

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

Preview Lab → · Contrast checker → · Palette generator →

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