#5051DC#5051DC

#5051DC is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.0% C 0.207 H 276.2°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5051DC
RGBrgb(80, 81, 220)
HSLhsl(240, 67%, 59%)
HSVhsv(240, 64%, 86%)
CMYKcmyk(63.6%, 63.2%, 0%, 13.7%)
CIE-LABlab(42.39, 41.50, -71.23)
CIE-LCHlch(42.39, 82.44, 300.23°)
OKLaboklab(52.04% 0.0222 -0.2053)
OKLCHoklch(52.04% 0.207 276.2)
XYZxyz(19.1647, 12.7560, 69.1485)
Luminance0.1276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5051DC #DCDB50
analogous
#5097DC #5051DC #9550DC
triadic
#5051DC #DC5051 #51DC50
tetradic
#5051DC #DC5097 #DCDB50 #50DC95
square
#5051DC #DC5097 #DCDB50 #50DC95
split-complementary
#5051DC #DC9550 #97DC50
monochromatic
#1E1E94 #2829C7 #5051DC #8384E6 #B6B6F0

Accessibility & contrast

On white

5.91
#5051DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#5051DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5051DC
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5051DC#FFFFFF#000000##FFFFFF
##5051DC1.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)
#006AE0
Deuteranopia (green-blind)
#005ED9
Tritanopia (blue-blind)
#00748F
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5051dc;
/* rgb */ color: rgb(80, 81, 220);
/* oklch */ color: oklch(52.0% 0.207 276.2);
Tailwind
colors: {
  custom: {
    50: '#9082e8',
    500: '#5051dc',
    950: '#000000',
  },
}
SCSS
$custom: #5051dc;
$custom-light: #9082e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5051dc",
  "rgb": {
    "r": 80,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 239.571,
    "s": 66.667,
    "l": 58.824
  },
  "oklch": {
    "l": 0.52041,
    "c": 0.20652,
    "h": 276.2
  },
  "luminance": 0.12758
}

Semantic roles & 50–950 ramp

primary
#5051DC
secondary
#DFDFA8
accent
#E83EEA
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5051DC

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

Preview Lab → · Contrast checker → · Palette generator →

#5051DC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva