#5051DF#5051DF

#5051DF is a mid, highly saturated blue. Relative luminance 0.129; OKLCH L 52.3% C 0.210 H 276.0°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#5051DF
RGBrgb(80, 81, 223)
HSLhsl(240, 69%, 59%)
HSVhsv(240, 64%, 87%)
CMYKcmyk(64.1%, 63.7%, 0%, 12.5%)
CIE-LABlab(42.64, 42.48, -72.55)
CIE-LCHlch(42.64, 84.07, 300.35°)
OKLaboklab(52.3% 0.022 -0.2092)
OKLCHoklch(52.3% 0.21 276)
XYZxyz(19.5656, 12.9164, 71.2598)
Luminance0.1292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5051DF #DFDE50
analogous
#5099DF #5051DF #9650DF
triadic
#5051DF #DF5051 #51DF50
tetradic
#5051DF #DF5099 #DFDE50 #50DF96
square
#5051DF #DF5099 #DFDE50 #50DF96
split-complementary
#5051DF #DF9650 #99DF50
monochromatic
#1C1D99 #2527CC #5051DF #8484E8 #B7B8F2

Accessibility & contrast

On white

5.86
#5051DF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#5051DF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5051DF
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5051DF#FFFFFF#000000##FFFFFF
##5051DF1.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE4
Deuteranopia (green-blind)
#005EDC
Tritanopia (blue-blind)
#007591
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5051df;
/* rgb */ color: rgb(80, 81, 223);
/* oklch */ color: oklch(52.3% 0.210 276.0);
Tailwind
colors: {
  custom: {
    50: '#9182ea',
    500: '#5051df',
    950: '#000000',
  },
}
SCSS
$custom: #5051df;
$custom-light: #9182ea;
$custom-dark: #000000;
JSON
{
  "hex": "#5051df",
  "rgb": {
    "r": 80,
    "g": 81,
    "b": 223
  },
  "hsl": {
    "h": 239.58,
    "s": 69.082,
    "l": 59.412
  },
  "oklch": {
    "l": 0.52295,
    "c": 0.21032,
    "h": 276
  },
  "luminance": 0.12918
}

Semantic roles & 50–950 ramp

primary
#5051DF
secondary
#E1E1AA
accent
#EB3CEC
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5051DF

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

Preview Lab → · Contrast checker → · Palette generator →

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