#5056CD#5056CD

#5056CD is a mid, vivid blue. Relative luminance 0.128; OKLCH L 51.7% C 0.181 H 275.9°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5056CD
RGBrgb(80, 86, 205)
HSLhsl(237, 56%, 56%)
HSVhsv(237, 61%, 80%)
CMYKcmyk(61%, 58%, 0%, 19.6%)
CIE-LABlab(42.41, 33.50, -62.60)
CIE-LCHlch(42.41, 71.00, 298.15°)
OKLaboklab(51.69% 0.0185 -0.1799)
OKLCHoklch(51.69% 0.181 275.9)
XYZxyz(17.6519, 12.7674, 59.2799)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5056CD #CDC750
analogous
#5094CD #5056CD #8850CD
triadic
#5056CD #CD5056 #56CD50
tetradic
#5056CD #CD5094 #CDC750 #50CD88
square
#5056CD #CD5094 #CDC750 #50CD88
split-complementary
#5056CD #CD8850 #94CD50
monochromatic
#24287E #3238AE #5056CD #8084DB #AFB2E8

Accessibility & contrast

On white

5.91
#5056CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5056CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5056CD
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5056CD#FFFFFF#000000##FFFFFF
##5056CD1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD1
Deuteranopia (green-blind)
#005FCB
Tritanopia (blue-blind)
#007389
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5056cd;
/* rgb */ color: rgb(80, 86, 205);
/* oklch */ color: oklch(51.7% 0.181 275.9);
Tailwind
colors: {
  custom: {
    50: '#8d85dd',
    500: '#5056cd',
    950: '#000000',
  },
}
SCSS
$custom: #5056cd;
$custom-light: #8d85dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5056cd",
  "rgb": {
    "r": 80,
    "g": 86,
    "b": 205
  },
  "hsl": {
    "h": 237.12,
    "s": 55.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.51692,
    "c": 0.18088,
    "h": 275.9
  },
  "luminance": 0.12769
}

Semantic roles & 50–950 ramp

primary
#5056CD
secondary
#D6D4A2
accent
#D849DF
background
#F9F8FD
surface
#F2EFFB
border
#CCCAD4
text
#0D0B15
muted
#7E7C83

Preview Lab

Preview with #5056CD

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

Preview Lab → · Contrast checker → · Palette generator →

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