#5179CD#5179CD

#5179CD is a mid, vivid blue. Relative luminance 0.198; OKLCH L 58.7% C 0.137 H 263.5°. Best body text is #000000 at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#5179CD
RGBrgb(81, 121, 205)
HSLhsl(221, 55%, 56%)
HSVhsv(221, 60%, 80%)
CMYKcmyk(60.5%, 41%, 0%, 19.6%)
CIE-LABlab(51.64, 11.88, -47.75)
CIE-LCHlch(51.64, 49.21, 283.97°)
OKLaboklab(58.71% -0.0154 -0.1358)
OKLCHoklch(58.71% 0.137 263.5)
XYZxyz(21.2463, 19.8300, 60.4537)
Luminance0.1983 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5179CD #CDA551
analogous
#51B7CD #5179CD #6751CD
triadic
#5179CD #CD5179 #79CD51
tetradic
#5179CD #CD51B7 #CDA551 #51CD67
square
#5179CD #CD51B7 #CDA551 #51CD67
split-complementary
#5179CD #CD6751 #B7CD51
monochromatic
#25427F #325AAF #5179CD #819EDB #B0C2E8

Accessibility & contrast

On white

4.23
#5179CD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.97
#5179CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5179CD
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5179CD#FFFFFF#000000##000000
##5179CD1.004.234.974.97
#FFFFFF4.231.0021.0021.00
#0000004.9721.001.001.00
##0000004.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5481D0
Deuteranopia (green-blind)
#4376CB
Tritanopia (blue-blind)
#008C99
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5179cd;
/* rgb */ color: rgb(81, 121, 205);
/* oklch */ color: oklch(58.7% 0.137 263.5);
Tailwind
colors: {
  custom: {
    50: '#8c9fdd',
    500: '#5179cd',
    950: '#000000',
  },
}
SCSS
$custom: #5179cd;
$custom-light: #8c9fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#5179cd",
  "rgb": {
    "r": 81,
    "g": 121,
    "b": 205
  },
  "hsl": {
    "h": 220.645,
    "s": 55.357,
    "l": 56.078
  },
  "oklch": {
    "l": 0.58705,
    "c": 0.13672,
    "h": 263.5
  },
  "luminance": 0.19832
}

Semantic roles & 50–950 ramp

primary
#5179CD
secondary
#D7C6A3
accent
#AE49DF
background
#F9F9FD
surface
#F1F2FB
border
#CBCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5179CD

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

Preview Lab → · Contrast checker → · Palette generator →

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