#5056CC#5056CC

#5056CC is a mid, vivid blue. Relative luminance 0.127; OKLCH L 51.6% C 0.180 H 275.9°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#5056CC
RGBrgb(80, 86, 204)
HSLhsl(237, 55%, 56%)
HSVhsv(237, 61%, 80%)
CMYKcmyk(60.8%, 57.8%, 0%, 20%)
CIE-LABlab(42.34, 33.17, -62.14)
CIE-LCHlch(42.34, 70.44, 298.09°)
OKLaboklab(51.61% 0.0185 -0.1786)
OKLCHoklch(51.61% 0.18 275.9)
XYZxyz(17.5316, 12.7193, 58.6462)
Luminance0.1272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5056CC #CCC650
analogous
#5094CC #5056CC #8850CC
triadic
#5056CC #CC5056 #56CC50
tetradic
#5056CC #CC5094 #CCC650 #50CC88
square
#5056CC #CC5094 #CCC650 #50CC88
split-complementary
#5056CC #CC8850 #94CC50
monochromatic
#24297D #3238AD #5056CC #7F84DA #AFB2E8

Accessibility & contrast

On white

5.93
#5056CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#5056CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5056CC
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5056CC#FFFFFF#000000##FFFFFF
##5056CC1.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#005FCA
Tritanopia (blue-blind)
#007289
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5056cc;
/* rgb */ color: rgb(80, 86, 204);
/* oklch */ color: oklch(51.6% 0.180 275.9);
Tailwind
colors: {
  custom: {
    50: '#8d85dc',
    500: '#5056cc',
    950: '#000000',
  },
}
SCSS
$custom: #5056cc;
$custom-light: #8d85dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5056cc",
  "rgb": {
    "r": 80,
    "g": 86,
    "b": 204
  },
  "hsl": {
    "h": 237.097,
    "s": 54.867,
    "l": 55.686
  },
  "oklch": {
    "l": 0.51614,
    "c": 0.17954,
    "h": 275.9
  },
  "luminance": 0.12721
}

Semantic roles & 50–950 ramp

primary
#5056CC
secondary
#D6D3A2
accent
#D74ADE
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5056CC

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

Preview Lab → · Contrast checker → · Palette generator →

#5056CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva